slang-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] module gettext


Hello Bernhard,

2011/7/25 Bernhard Schönhammer <B.Schoenhammer@xxxxxxxxxxxx>:

> What is gettext doing to my variables?

Looks like S-Lang's float parser isn't locale agnostic. This bug must
have been present for ages, I will fix. You can work around it by
adding a line
setlocale(LC_NUMERIC, "C");

Actually I think this may be a problem in S-Lang. Since it's an
embeddable language, it shouldn't rely on the locale setting. See also
http://www.python.org/dev/peps/pep-0331/ and
https://bugs.php.net/bug.php?id=17815 for discussions of similar
problems in python and php.

Paul



[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]