discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDecimalSeparator


From: Fred Kiefer
Subject: Re: NSDecimalSeparator
Date: Tue, 11 May 2010 23:00:39 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.9) Gecko/20100317 SUSE/3.0.4-1.1.1 Thunderbird/3.0.4

Am 11.05.2010 22:41, schrieb Andreas Höschler:
> Hi all,
> 
>> I have set up a new system (Solaris/GNustep). Users want numbers to be
>> formated with , for the decimal separator and I again have no clue how
>> and where to set that. I have followed the trace up to
>>
>>      NSScanner::locale
>>       loc = [[NSUserDefaults standardUserDefaults]
>> dictionaryRepresentation];
>>
>> loc containing a corresponding value for the key NSDecimalSeparator. I
>> have just not found out how this is deternimed and set? Which unix
>> environment variables is GNUstep bas echecking to set a default for
>> this key?
> 
> Found it, at least a solution I can live with.
> 
>     defaults write NSGlobalDomain NSDecimalSeparator ","

On systems that have locale.h installed we use localeconv() to get this
information. Please see GSLocale.m for details.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]