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
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: -- (:)
From: Paul Steckler <Paul.Steckler@n...>
Subject: RE: [Caml-list] 8-bit characters on command line
> From: Dmitry Bely []
> 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

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.