From: Yamagata Yoriyuki <yoriyuki@mbg.ocn.ne.jp>
To: mattias.waldau@abc.se
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How do I create files with UTF-8 file names?
Date: Wed, 15 Sep 2004 21:37:41 +0900 (JST) [thread overview]
Message-ID: <20040915.213741.123996448.yoriyuki@mbg.ocn.ne.jp> (raw)
In-Reply-To: <4142BED1.7050604@abc.se>
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:38 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 [this message]
2004-09-15 12:54 ` Mattias Waldau
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=20040915.213741.123996448.yoriyuki@mbg.ocn.ne.jp \
--to=yoriyuki@mbg.ocn.ne.jp \
--cc=caml-list@inria.fr \
--cc=mattias.waldau@abc.se \
/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