Mailinglist Archive: yast-commit (723 mails)

< Previous Next >
[yast-commit] r47480 - /trunk/ncurses/src/NCApplication.cc
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Tue, 13 May 2008 11:15:54 -0000
  • Message-id: <20080513111554.80EE8313B9@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages