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 OAA19564; Wed, 15 Sep 2004 14:54:21 +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 OAA25636 for ; Wed, 15 Sep 2004 14:54:20 +0200 (MET DST) Received: from mxfep01.bredband.com (mxfep01.bredband.com [195.54.107.70]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8FCsJPK009158 for ; Wed, 15 Sep 2004 14:54:20 +0200 Received: from [127.0.0.1] ([83.226.138.194] [83.226.138.194]) by mxfep01.bredband.com with ESMTP id <20040915125419.PAIE1871.mxfep01.bredband.com@[127.0.0.1]>; Wed, 15 Sep 2004 14:54:19 +0200 Message-ID: <41483B7B.9090104@abc.se> Date: Wed, 15 Sep 2004 14:54:19 +0200 From: Mattias Waldau User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yamagata Yoriyuki CC: caml-list@inria.fr Subject: Re: [Caml-list] How do I create files with UTF-8 file names? References: <4142BED1.7050604@abc.se> <20040915.213741.123996448.yoriyuki@mbg.ocn.ne.jp> In-Reply-To: <20040915.213741.123996448.yoriyuki@mbg.ocn.ne.jp> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 41483B7B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; mattias:01 waldau:01 mattias:01 waldau:01 caml-list:01 yamagata:01 yoriyuki:01 caml-list:01 2004:99 val:01 abstr:01 yamagata:01 yoriyuki:01 sep:01 encoded:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On windows I will get a file called "\164\198\164\185\164\200" instead of the actual name. -- Mattias Yamagata Yoriyuki wrote: > From: Mattias Waldau > Subject: [Caml-list] How do I create files with UTF-8 file names? > Date: Sat, 11 Sep 2004 11:01:05 +0200 > > >>I have a filename as an UTF-8 encoded string. I need to be able to >>handle strange chars like accents, Asian chars etc. >> >>Is there any way to create a file with that name? I only need it on Win32. > > > On my Debian/Linux machine, I can make a file with a Japanese (EUC-JP) > name just like an ASCII named file. > > # let c = open_out "\164\198\164\185\164\200";; > val c : out_channel = > # output_string;; > - : out_channel -> string -> unit = > # output_string c "\164\198\164\185\164\200";; > - : unit = () > # close_out c;; > - : unit = () > > $ ls > てすと > > Or am I missing something? > > -- > Yamagata Yoriyuki > > ------------------- 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/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners