From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA26704; Fri, 8 Jun 2001 19:04:27 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA26803 for ; Fri, 8 Jun 2001 19:04:25 +0200 (MET DST) Received: from mrwall.kal.com (mrwall.kal.com [194.193.14.236]) by concorde.inria.fr (8.11.1/8.10.0) with SMTP id f58H4On18071 for ; Fri, 8 Jun 2001 19:04:24 +0200 (MET DST) Received: from mrwall.kal.com [194.193.14.236] (HELO localhost) by mrwall.kal.com (AltaVista Mail V2.0J/2.0J BL25J listener) id 0000_0045_3b21_0630_4081; Fri, 08 Jun 2001 18:06:56 +0100 Subject: RE: [Caml-list] postscript, printf module and coma separator. MIME-Version: 1.0 Date: Fri, 8 Jun 2001 18:02:41 +0100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <8E31D6933A2FE64F8AE3CC1381EEDCE704C444@NT.kal.com> content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Thread-Topic: [Caml-list] postscript, printf module and coma separator. Thread-Index: AcDwOE12M1APo6OGS8yiMO7+Y5OwIgABJazg From: "Dave Berry" To: "Sven LUTHER" , Cc: Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >>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 setenv LC_NUMERIC 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.=20 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