|There's more than one way to do things|
Directory operations and Unicodeby nikosv (Hermit)
|on Nov 02, 2011 at 10:32 UTC||Need Help??|
nikosv has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks, this is my first post after a long time
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 workaroundsthanks