caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] string_of_float -> float_of_string locale dependency bug
@ 2004-06-13 13:30 Evgeny Chukreev
  2004-06-13 15:05 ` Yamagata Yoriyuki
  2004-06-14  9:54 ` Xavier Leroy
  0 siblings, 2 replies; 10+ messages in thread
From: Evgeny Chukreev @ 2004-06-13 13:30 UTC (permalink / raw)
  To: caml-list

Hello!

/tmp% echo $LANG
ru_RU.KOI8-R

/tmp% ocaml -I /usr/local/lib/ocaml/3.07/camomile/ bigarray.cma camomile.cma
        Objective Caml version 3.07+2

# float_of_string "0,";;
- : float = 0.
# string_of_float 0,;;
Syntax error
# string_of_float 0.;;
Fatal error: exception Failure("float_of_string")

Looks like string_of_float returns "0." (not depends on locale)
but float_of_string can't parse such string due to locale dependency.

-- 
... WBR, Evgeny ...

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-06-14 21:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-13 13:30 [Caml-list] string_of_float -> float_of_string locale dependency bug Evgeny Chukreev
2004-06-13 15:05 ` Yamagata Yoriyuki
2004-06-14  9:54 ` Xavier Leroy
2004-06-14 12:00   ` Evgeny Chukreev
2004-06-14 15:23   ` Yamagata Yoriyuki
2004-06-14 15:57     ` Evgeny Chukreev
2004-06-14 16:04       ` Xavier Leroy
2004-06-14 16:27         ` Shawn Wagner
2004-06-14 15:58     ` Xavier Leroy
2004-06-14 21:51       ` Yamagata Yoriyuki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).