Author: sh-sh-sh Date: Tue May 13 13:15:54 2008 New Revision: 47480 URL: http://svn.opensuse.org/viewcvs/yast?rev=47480&view=rev Log: (hopefully) fixed encoding bugs Modified: trunk/ncurses/src/NCApplication.cc Modified: trunk/ncurses/src/NCApplication.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCApplication.cc?rev=47480&r1=47479&r2=47480&view=diff ============================================================================== --- trunk/ncurses/src/NCApplication.cc (original) +++ trunk/ncurses/src/NCApplication.cc Tue May 13 13:15:54 2008 @@ -46,7 +46,11 @@ NCApplication::setLanguage( const string & language, const string & encoding ) { - YApplication::setLanguage( language, encoding ); + // Intentionally NOT calling + // YApplication::setLanguage( language, encoding ); + // This would implicitly overwrite LC_CTYPE which might result in encoding bugs. + + setlocale( LC_NUMERIC, "C" ); // always format numbers with "." NCurses::Refresh(); yuiDebug() << "Language: " << language << " Encoding: " << ((encoding!="")?encoding:"NOT SET") << endl; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org