Re: Unicode filenames on NTFS using Perl

Michael Ludwig <[email protected]> Sun, 8 Jan 2012 18:41:05 +0100
Newsgroups gmane.comp.lang.perl.active-perl
Message-ID <20120108174105.GI952@Dago>
[email protected] schrieb am 08.01.2012 um 15:38 (+0100):
> Have you installed the Asian Language Support Package for Windows?
> That Should fix this.

Fix what? ActiveState Perl file creation operations? Note that it does
work correctly using Cygwin Perl and other more mainstream tools.

I suspect the ALSP you're referring to would provide fonts for Asian
console glyphs, but I don't need those as I don't read those languages
anyway.

Please refer to the quoted part below to see what I'm talking about.
Chinese is just an example; Russian is another, more relevant one.

Michael

> Am 07.01.2012 um 21:04 schrieb Michael Ludwig <[email protected]>:

> > How do you save a file with a Chinese or other name requiring
> > Unicode using Active Perl?
> > 
> > Here's a script to save a file as Катюша.txt (Katyusha) and just
> > won't work using any of four encodings and even none at all! What
> > do I have to do in order to just save my Катюша.txt ?

> > The filenames it manages to save are disfigured:
> > 
> >  07.01.2012  20:44                17 Катюша.1.txt
> >  07.01.2012  20:44                17 Катюша.5.txt

> > Cygwin perl 5.10.1, by the way, displayed no errors and got it
> > right:
> > 
> >  07.01.2012  20:51                16 Катюша.1.txt

> >  07.01.2012  20:51                16 Катюша.5.txt
> > 
> > You can feed either a character string or a UTF-8 octet string to
> > this Cygwin perl.exe open() and it creates the proper filename,
> > proving that it's not technically impossible. :)
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs