From: Evgeny Chukreev <sjah@land.ru>
To: caml-list@inria.fr
Subject: [Caml-list] string_of_float -> float_of_string locale dependency bug
Date: Sun, 13 Jun 2004 20:30:12 +0700 [thread overview]
Message-ID: <m3k6ybwpp7.fsf@jah.m12.ru> (raw)
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
next reply other threads:[~2004-06-13 13:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-13 13:30 Evgeny Chukreev [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3k6ybwpp7.fsf@jah.m12.ru \
--to=sjah@land.ru \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox