English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
8-bit characters on command line
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-05-14 (06:20)
From: Paul Steckler <Paul.Steckler@n...>
Subject: RE: [Caml-list] 8-bit characters on command line
> From: Dmitry Bely [dmitry.bely@gmail.com]
> I believe that's because there are actually two current code pages in
> Windows: "OEM" code page for console input/output and "ANSI" one for
> everything else.

I'm not sure that's the issue, because

  1) 8-bit characters are read and written OK to the OCaml interpreter
via the Windows console, and

  2) if I write the equivalent C program and compile it on Windows, 8-bit
characters are passed as arguments and spat back just fine

Instead, there seems to be something in the way OCaml handles command-line

-- Paul
Paul Steckler
National ICT Australia
paul DOT steckler AT nicta.com.au

The information in this e-mail may be confidential and subject to legal professional privilege and/or copyright. National ICT Australia Limited accepts no liability for any damage caused by this email or its attachments.