develooper Front page | perl.perl5.porters | Postings from September 2013

Re: [perl #119499] $! returned with UTF-8 flag under UTF-8 localesonly under 5.19.2+

Thread Previous | Thread Next
From:
Victor Efimov
Date:
September 10, 2013 10:01
Subject:
Re: [perl #119499] $! returned with UTF-8 flag under UTF-8 localesonly under 5.19.2+
Message ID:
CAF7QZD7ot1ZU3s1qJ-50uGpO78usfSt5JRmYWobN+k5c-tS4-w@mail.gmail.com
On Win32 (Strawberry perl):

$chcp
Текущая кодовая страница: 866

$perl -MEncode -e "binmode STDOUT, ':encoding(CP866)'; open my $f, '<',
'notafile' or print decode('WINDOWS-1251', qq{error is: [$^E]})"
error is: [Не удается найти указанный файл]

(firs command outputs "codepage" encoding, last prints sane Russian error
message)

2013/9/10 Karl Williamson <public@khwilliamson.com>

>
> Does anyone know if the strings for the platforms that have separate $^E
> strings return those in the current locale or not?
>
> These include vms, win32, dos, and os/2.
>
>

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