caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Dave Berry" <Dave@kal.com>
To: "Sven LUTHER" <luther@dpt-info.u-strasbg.fr>, <caml-list@inria.fr>
Cc: <nicolas.george@ens.fr>
Subject: RE: [Caml-list] postscript, printf module and coma separator.
Date: Fri, 8 Jun 2001 18:02:41 +0100	[thread overview]
Message-ID: <8E31D6933A2FE64F8AE3CC1381EEDCE704C444@NT.kal.com> (raw)

>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


             reply	other threads:[~2001-06-08 17:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-08 17:02 Dave Berry [this message]
2001-06-11 15:36 ` Sven LUTHER
  -- strict thread matches above, loose matches on Subject: below --
2001-06-08 16:33 Sven LUTHER

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=8E31D6933A2FE64F8AE3CC1381EEDCE704C444@NT.kal.com \
    --to=dave@kal.com \
    --cc=caml-list@inria.fr \
    --cc=luther@dpt-info.u-strasbg.fr \
    --cc=nicolas.george@ens.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;
as well as URLs for NNTP newsgroup(s).