[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Dave Berry <Dave@k...> |
| Subject: | RE: [Caml-list] postscript, printf module and coma separator. |
>From the book I have in front of me (which may not be accurate), it should be possible to set the formatting of numeric types independently of the other locale settings: setenv LANG <Locale1> setenv LC_NUMERIC <Locale2> It also says that ISO C specifies a "C" Locale, which behaves the same as uninternationalised C functions. So it *should* be possible to use: setenv LANG fr_FR setenv LC_NUMERIC C I have no idea whether this works in practice. Dave. -----Original Message----- From: Sven LUTHER [mailto:luther@dpt-info.u-strasbg.fr] Sent: 08 June 2001 17:33 To: caml-list@inria.fr Cc: nicolas.george@ens.fr Subject: [Caml-list] postscript, printf module and coma separator. Hello, ... I am playing with the postscript.ml module from Nicolas Georges. Unfortunately, i have the LANG variable set to fr_FR, and as thus fprintf outputs floats as : 3,14 but this is not a valid postscript coordinate. removing the LANG variable give me the standard 3.14 output, which is acceptable to generate postscript files. Is there a way to have printf output floats in the standard C "." format, independent of locales ? Or is the best guess as how to solve this to backup, change to "" and then set again the LANG variable using the appropriate ocaml functions ? Friendly, Svne Luther ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ 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/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr