Mailinglist Archive: opensuse-bugs (3177 mails)

< Previous Next >
[Bug 764448] wrong font in yast2 nurses installer

https://bugzilla.novell.com/show_bug.cgi?id=764448

https://bugzilla.novell.com/show_bug.cgi?id=764448#c5


--- Comment #5 from Gabriele Mohr <gs@xxxxxxxx> 2012-05-31 12:32:09 UTC ---
YNCursesUI.cc, line 79

YNCursesUI::YNCursesUI( bool withThreads )
: YUI( withThreads )
{
yuiMilestone() << "Start YNCursesUI" << endl;
_ui = this;

if ( getenv( "LANG" ) != NULL )
{
string language = getenv( "LANG" );
string encoding = nl_langinfo( CODESET );

// setlocale ( LC_ALL, "" ) is called in WMFInterpreter::WFMInterpreter;

// Explicitly set LC_CTYPE so that it won't be changed if setenv( LANG ) is
called elsewhere.
// (it's not enough to call setlocale( LC_CTYPE, .. ), set env. variable
LC_CTYPE!)

string locale = setlocale( LC_CTYPE, NULL );
setenv( "LC_CTYPE", locale.c_str(), 1 );

yuiMilestone() << "setenv LC_CTYPE: " << locale << " encoding: " <<
encoding << endl;

// The encoding of a terminal (xterm, konsole etc.) can never change; the
encoding
// of the "real" console is changed in setConsoleFont().
NCstring::setTerminalEncoding( encoding );

app()->setLanguage( language, encoding );
}

--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
References