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

Bengt Kleberg <>
Tue Feb 26 09:40:10 CET 2008


Greetings,

How do you mean "invisible to erlang"?

I have a file called åäö. It was created in a plan9 tool
(http://plan9.bell-labs.com/sys/doc/acme.html) and plan9 uses unicode
throughout (http://plan9.bell-labs.com/sys/doc/utf.html). Using default
settings on unix the file is displayed as åäö. Using erlang the file
is also åäö .
; erl
Eshell V5.5.5.5  (abort with ^G)
2> ls().
åäö
ok


bengt

 On Tue, 2008-02-26 at 09:51 +0200, Dmitri Girenko wrote:
> 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
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list