From: Mattias Waldau <mattias.waldau@abc.se>
To: Yamagata Yoriyuki <yoriyuki@mbg.ocn.ne.jp>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How do I create files with UTF-8 file names?
Date: Wed, 15 Sep 2004 14:54:19 +0200 [thread overview]
Message-ID: <41483B7B.9090104@abc.se> (raw)
In-Reply-To: <20040915.213741.123996448.yoriyuki@mbg.ocn.ne.jp>
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 <mattias.waldau@abc.se>
> 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 = <abstr>
> # output_string;;
> - : out_channel -> string -> unit = <fun>
> # 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
next prev parent reply other threads:[~2004-09-15 12:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-11 9:01 Mattias Waldau
2004-09-15 12:37 ` Yamagata Yoriyuki
2004-09-15 12:54 ` Mattias Waldau [this message]
2004-09-15 13:27 ` Yamagata Yoriyuki
2004-09-15 14:18 ` Peter Jolly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41483B7B.9090104@abc.se \
--to=mattias.waldau@abc.se \
--cc=caml-list@inria.fr \
--cc=yoriyuki@mbg.ocn.ne.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox