develooper Front page | perl.perl5.porters | Postings from February 2009

Re: [perl #63184] mkdir with non-ASCII characters

Thread Previous | Thread Next
From:
Farkas Máté
Date:
February 16, 2009 09:53
Subject:
Re: [perl #63184] mkdir with non-ASCII characters
Message ID:
4999767A.3060703@gmail.com
Eric Brine via RT írta:
> On Thu, Feb 12, 2009 at 9:21 AM, via RT FARKAS Máté <
> perlbug-followup@perl.org> wrote:
>
>   
>> I use hungarian Windows, but this way is not portable, because (for
>> example) on Japanese windows I can not use this encodings.
>> Someone else have found this bug, see:
>> http://bits.6w9.org/?p=444
>>     
> You want CreateDirectory in module Win32.
>   
Thank you for your reply, I try the services of Win32 module, but it is 
not perfect.

Example:

    my *$dirName* = '../Üzemanyag'; # Üzemanyag == fuel in english
    Win32::*CreateDirectory*($dirName);
    my *$dir* = Win32::GetANSIPathName( $dirName );

    *LWP::Simple::getstore( $url, "$dir/$file" );*

It doesn't work, but if I use *U* instead of *Ü*, it works well. It 
doesn't work even if I use "$dirName/$file" or someone else.

Don't want Perl be in Unicode mode in Windows or use Win32 module 
automatically on background? I can not rewrite every used module to use 
Win32 to access to files…

Thank you for your help, I wait for your reply!

Best regards,
Máté.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About