Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
RE: [Caml-list] postscript, printf module and coma separator.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-06-11 (15:33)
From: Sven LUTHER <luther@d...>
Subject: Re: [Caml-list] postscript, printf module and coma separator.
On Fri, Jun 08, 2001 at 06:02:41PM +0100, Dave Berry wrote:
> >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.

mmm, yes, that's a good idea, but still, you have to do it from the shell.

What i wanted is to do it from the ocaml program i am running though, so that
it will work whatever the environement, but then maybe a specialized printf
function could be done, don't know.


Sven Luther
Bug reports:  FAQ:
To unsubscribe, mail  Archives: