[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Desperate in need of help: Very very weird problem with sscanf
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2009-08-19 19:26:21
Message-ID: h6hjkt$5a7$1 () ger ! gmane ! org
[Download RAW message or body]

Sebastian Trüg wrote:
> The following patch "fixes" the issue. I do not know enough about locales to 
> make an informed decision about a real solution.
> 
> --- kdecore/localization/kcatalog.cpp   (revision 1013365)
> +++ kdecore/localization/kcatalog.cpp   (working copy)
> @@ -45,7 +45,7 @@
>      s_localeSet = true;
>      return 1;
>  }
> -Q_CONSTRUCTOR_FUNCTION(kInitializeLocale)
> +//Q_CONSTRUCTOR_FUNCTION(kInitializeLocale)
> 
>  // not defined on win32 :(
>  #ifdef _WIN32
> 
> Apparently LC_ALL is reset once kdecore is loaded.

kInitializeLocale sure sounds like it would set LC_* according to KDE 
preferences. If this is not what you want, I think you would need to 
override the locale options after your application starts up.

-- 
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
-- 
ヱルキ・マーチウ

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic