Am Samstag, 13. Oktober 2007 15:18:31 schrieb Roman: > On Friday, October 12, 2007, 5:01:53 PM, Dennis Schridde wrote: > > Am Freitag, 12. Oktober 2007 16:33:09 schrieb Roman: > >> Author: troman > >> Date: Fri Oct 12 16:33:08 2007 > >> New Revision: 2546 > >> > >> URL: http://svn.gna.org/viewcvs/warzone?rev=2546&view=rev > >> Log: > >> - set LC_NUMERIC in the setlocale() call to accept a period as a radix > >> for floating point numbers instead of a comma - replaced > >> setlocale(LC_ALL, "") with setlocale(LC_MESSAGES, ""), as suggested by > >> Devurandom > > > > When you only set LC_MESSAGES and nothing else it did not work? > > Since the way it is now, everything should be C, but LC_MESSAGES, which > > should > > have the environment value. So you wouldn't need to set LC_NUMERIC > > explicitly... > > > > --Dennis > > No, this would do exactly the opposite of what is needed. > > Since LC_MESSAGES is assigned a value of 0 for some reason, it works like > LC_ALL. And setting LC_ALL to the environmental settings is exactly what > should be avoided. Then the gettext implementation for Windows is significantly different from the Linux one: enum { __LC_CTYPE = 0, __LC_NUMERIC = 1, __LC_TIME = 2, __LC_COLLATE = 3, __LC_MONETARY = 4, __LC_MESSAGES = 5, __LC_ALL = 6, __LC_PAPER = 7, __LC_NAME = 8, __LC_ADDRESS = 9, __LC_TELEPHONE = 10, __LC_MEASUREMENT = 11, __LC_IDENTIFICATION = 12 };
--Dennis
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
