nikosv has asked for the wisdom of the Perl Monks concerning the following question:
What is the state of the directory operators (opendir,readdir) regarding Unicode support?
I am under the impression that there is still no support for reading directories and files on a Unicode enabled file system.
For example on Win32, the non-Unicode directory operators get the data after being converted from UTF to ANSI using the System Default Page settings, although the filesystem is UTF16.
Thus to read Unicode dirs and files I am using Win32::COM which can read UTF8, although there is this module Win32-Unicode-0.26 which I have not tried.
So after this long introduction, the question is why those operators as opposed to the file-handling operations are not Unicode enabled (not necessarily by default but could be enabled by using a pragma), if that holds true for other OS's i.e Linux as well, and what are suggested workarounds
thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Directory operations and Unicode
by moritz (Cardinal) on Nov 02, 2011 at 10:40 UTC | |
by afoken (Chancellor) on Nov 02, 2011 at 11:13 UTC | |
by moritz (Cardinal) on Nov 02, 2011 at 11:16 UTC | |
Re: Directory operations and Unicode
by Anonymous Monk on Nov 02, 2011 at 11:56 UTC | |
by Jenda (Abbot) on Nov 02, 2011 at 15:08 UTC | |
Re: Directory operations and Unicode
by patcat88 (Deacon) on Nov 06, 2011 at 02:39 UTC | |
by Anonymous Monk on Nov 06, 2011 at 05:18 UTC | |
by nikosv (Deacon) on Nov 06, 2011 at 05:21 UTC | |
by afoken (Chancellor) on Nov 08, 2011 at 13:44 UTC | |
by nikosv (Deacon) on Nov 09, 2011 at 05:45 UTC | |
by afoken (Chancellor) on Nov 11, 2011 at 13:29 UTC |