CHICKEN6 Pre strange (number->string ...) output in some locales

Anton Idukov via Chicken-users <[email protected]>
Newsgroups gmane.lisp.scheme.chicken
Message-ID <CAMJCnqU2aYnLFOG-+rcMzMr1ePgrUQ8TtMi0yHk7gEhz9=0dQg@mail.gmail.com>
Hi! Bit strange number->string procedure result in C6 latest chicken-core,
(and I think in C5)
In some locales, where  float number 'dot' isn't dot but comma  ("0.5  vs
0,5") standard chicken's scheme library procedure (number->string 0.5)
outputs "0,5.0", I'll check runtime.c:11256  in C_flonum_to_string
function, where tests sprintf output for ".eE" presence, nor for ",".

Also (string->number (number->string 0.5))  in such setup outputs #f, not
0.5.

It looks meaningless, but in some cases such info may help. I got stuck
after the fact that gtk_init  calls shadowly setlocale. (yep, there is
gtk_disable_setlocale, now I know )))

Regards, Chickeners!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.