[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNUstep on a fresh Debian (S1-E4)
From: |
Richard Frith-Macdonald |
Subject: |
Re: GNUstep on a fresh Debian (S1-E4) |
Date: |
Tue, 08 Mar 2016 17:18:48 +0000 |
>
> I was suspecting the same and dug out my old PowerBook, but in the end it
> turns out that it's really a locale issue. The test program uses code like
> n1 = [NSDecimalNumber decimalNumberWithString: @"0.009"];
> to define the decimal numbers. According to Apple's documentation this method
> works with an unspecified locale, so the code works as long as this default
> locale is English (or any other locale that uses a '.' as decimal separator),
> but it breaks as soon as you are in a locale where '.' is not the decimal
> separator (in my case German, where ',' is the decimal separator). I guess,
> the test needs to be changed to use a fixed locale. On the other hand, on OS
> X with Apple's foundation the test seems to work for me even though my
> default locale is set to German. Perhaps while the default locale used by
> -decimalNumberWithString: is unspecified according to Apple's documentation
> they really use a fixed locale regardless of the user's locale nevertheless?
Thanks ... I changed the test to explicitly use [NSLocale systemLocale] ... I
hope that fixes it.
I looked at the Apple documentation, and to me it reads like they *should* be
using the German locale.
- Re: GNUstep on a fresh Debian (S1-E3), (continued)
- Re: GNUstep on a fresh Debian (S1-E3), Stefan Bidigaray, 2016/03/04
- Re: GNUstep on a fresh Debian (S1-E4), Tristan Bellogi, 2016/03/06
- Re: GNUstep on a fresh Debian (S1-E4), Bertrand Dekoninck, 2016/03/06
- Re: GNUstep on a fresh Debian (S1-E4), Richard Frith-Macdonald, 2016/03/07
- Re: GNUstep on a fresh Debian (S1-E4), Wolfgang Lux, 2016/03/07
- Re: GNUstep on a fresh Debian (S1-E4), Richard Frith-Macdonald, 2016/03/07
- Re: GNUstep on a fresh Debian (S1-E4), Bertrand Dekoninck, 2016/03/07
- Re: GNUstep on a fresh Debian (S1-E4), Richard Frith-Macdonald, 2016/03/07
- Re: GNUstep on a fresh Debian (S1-E4), Bertrand Dekoninck, 2016/03/07
- Re: GNUstep on a fresh Debian (S1-E4), Wolfgang Lux, 2016/03/08
- Re: GNUstep on a fresh Debian (S1-E4),
Richard Frith-Macdonald <=
- Re: GNUstep on a fresh Debian (S1-E4), Bertrand Dekoninck, 2016/03/08
- Re: GNUstep on a fresh Debian (S1-E4), Tristan Bellogi, 2016/03/08
- Re: GNUstep on a fresh Debian (S1-E4), Tristan Bellogi, 2016/03/07