From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id D7DBCBC57 for ; Fri, 14 May 2010 08:20:26 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnwBACOJ7EvLj65Ge2dsb2JhbACeAhUBARYiBR28ZoUQBA X-IronPort-AV: E=Sophos;i="4.53,227,1272837600"; d="scan'208";a="59340708" Received: from atp-es2.it.nicta.com.au ([203.143.174.70]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 14 May 2010 08:20:24 +0200 Received: from atp-mbx1.it.nicta.com.au ([221.199.216.123] helo=atp-mbx1.in.nicta.com.au) by atp-es2.it.nicta.com.au with esmtp (Exim 4.69) (envelope-from ) id 1OCoFx-0002Bm-N1; Fri, 14 May 2010 16:20:21 +1000 Received: from atp-mbx1.in.nicta.com.au ([221.199.216.123]) by atp-mbx1.in.nicta.com.au ([221.199.216.123]) with mapi; Fri, 14 May 2010 16:20:21 +1000 From: Paul Steckler To: Dmitry Bely Cc: "caml-list@yquem.inria.fr" Date: Fri, 14 May 2010 16:20:20 +1000 Thread-Topic: [Caml-list] 8-bit characters on command line Thread-Index: AcrzKIWlxzGz91fDTF2feHh633w+twABCNHC Message-ID: <2EB36A07AAE8C44BBB1986425E7A22D00FA659E37A@atp-mbx1.in.nicta.com.au> References: <2EB36A07AAE8C44BBB1986425E7A22D00FA659E379@atp-mbx1.in.nicta.com.au>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US x-tm-as-product-ver: SMEX-8.0.0.4125-6.000.1038-17382.000 x-tm-as-result: No--35.453300-0.000000-31 x-tm-as-user-approved-sender: Yes x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SA-Exim-Connect-IP: 221.199.216.123 X-SA-Exim-Mail-From: Paul.Steckler@nicta.com.au X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on atp-es2.it.nicta.com.au X-Spam-Level: Subject: RE: [Caml-list] 8-bit characters on command line X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on atp-es2.it.nicta.com.au) X-Spam: no; 0.00; steckler:01 steckler:01 ocaml:01 ocaml:01 command-line:01 compile:01 dmitry:01 dmitry:01 caml-list:01 bely:01 bely:01 output:02 spat:02 seems:03 handles:03 > 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 arguments. -- 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 pro= fessional privilege and/or copyright. National ICT Australia Limited accept= s no liability for any damage caused by this email or its attachments.