discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Latest gnustep releases (Foundation and AppKit)


From: Adam Fedor
Subject: Re: Latest gnustep releases (Foundation and AppKit)
Date: Wed, 26 Feb 2003 10:16:06 -0700


On Wednesday, February 26, 2003, at 03:54 AM, Andreas Heppel wrote:
Another thing that really estranges me is the behaviour of sscanf. I don't know how this is related to GNUstep, but what I experience after having updated GNUstep is the following: sscanf(somestring, "%f %f %f", &r, %g, %b) works only if the floats in the string use a _comma_ as decimal separator (which is the German way to write floats, e.g. 0,7 instead of 0.7). It used to be a decimal _point_. I think sscanf is a C library function and thus not related to GNUstep. Thus, the behaviour should remain the same all the time. But maybe I am wrong. Can someone please shed a light on this?



GNUstep set's the locale when it starts up, so that processing is in the user's local language (and that affects all functions in the glibc library). Perhaps that's not right though? Perhaps only the higher level NSString parsing should do that and not the lower level programmer interface?





reply via email to

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