caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Windows filenames and Unicode
@ 2010-09-29  5:05 Paul Steckler
  2010-09-29  6:23 ` [Caml-list] " David Allsopp
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Steckler @ 2010-09-29  5:05 UTC (permalink / raw)
  To: caml-list

In Windows, NTFS filenames are specified in Unicode (UTF-16).  Am I
right in thinking that
OCaml file primitives, like open_in, readdir, etc. cannot handle NTFS
filenames containing
characters with codepoints greater than 255?

I'm aware of the Camomile library, which gives the ability to
manipulate UTF-16 strings inside
of OCaml.  But it looks like crucial points of OCaml's I/O, like
Sys.argv and file primitives are
strictly limited to 8-bit characters.

Is there a way around this limitation, other than rewriting the file
I/O primitives?

-- Paul


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-09-30 19:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-29  5:05 Windows filenames and Unicode Paul Steckler
2010-09-29  6:23 ` [Caml-list] " David Allsopp
2010-09-29  7:26   ` Paul Steckler
2010-09-29  7:56     ` Michael Ekstrand
2010-09-29  7:58     ` David Allsopp
2010-09-29  8:14     ` Jerome Vouillon
2010-09-30 19:27     ` ygrek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).