[erlang-questions] filelib:fold_files (file:list_dir) and unicode filesystems

Dmitri Girenko Dmitri.Girenko@REDACTED
Tue Feb 26 08:51:24 CET 2008


Hi all,

I have a process that monitors specific folders for changed files. The
problem is that when a filename contains Unicode characters which are
outside of the system default codepage (Latin-1), those files are just
invisible to erlang. 

There's a workaround for linux - using UTF-8 translation seems to work,
but apparently it doesn't work on windows.

I think that once the "string as a list" problem is settled down, then
the efile driver should be updated to support Unicode filenames, maybe
using UTF-16 string encoding, rather than UTF-8.

Are there any plans to do this? 

Dmitri Girenko

Porkkalankatu 13C 00180
Helsinki, Finland
Tel:    +358-201-500-574
Mobile: +358-50-40-333-21
Fax:    +358-201-500-501




More information about the erlang-questions mailing list