Version française
Home     About     Download     Resources     Contact us    
Browse thread
Windows filenames and Unicode
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Paul Steckler <steck@s...>
Subject: Windows filenames and Unicode
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