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 (08:13)
From: Dmitry Bely <dmitry.bely@g...>
Subject: Re: [Caml-list] 8-bit characters on command line
On Fri, May 14, 2010 at 10:20 AM, Paul Steckler
<Paul.Steckler@nicta.com.au> wrote:

>  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

Just tested with MSVC 9.0 - exactly the same problem. Try this

#include <stdio.h>
int main(int argc, char** argv)
  for (int i=0; i < argc; ++i) {
  return 0;

and you'll see.

- Dmitry Bely