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

[perl #63402] use open :locale doesn't work in Windows

Thread Previous
From:
bulk88 via RT
Date:
May 26, 2013 17:40
Subject:
[perl #63402] use open :locale doesn't work in Windows
Message ID:
rt-3.6.HEAD-2650-1369590004-490.63402-15-0@perl.org
On Sun May 26 10:03:07 2013, jkeenan wrote:
> 
> Does this problem still persist with Perl 5.18 on Windows?
> 
> Thank you very much.
> Jim Keenan

No change in behavior the reporter observed on 5.19.0. I can't comment
whether there is a bug here or not.

____________________________________________________________________

C:\Documents and Settings\Owner\Desktop>chcp
Active code page: 1252

C:\Documents and Settings\Owner\Desktop>perl -we"use open ':std',
':encoding(cp8
50)'; print chr 0xB6" | perl -l -0777 -e"print unpack 'H*', <>"
f4

C:\Documents and Settings\Owner\Desktop>perl -we"use open ':std',
':locale'; pri
nt chr 0xB6" | perl -l -0777 -e"print unpack 'H*', <>"
Cannot figure out an encoding to use at -e line 1.
b6

C:\Documents and Settings\Owner\Desktop>perl -we"use open ':std',
':encoding(cp8
50)'; print chr 0x2591" | perl -l -0777 -e"print unpack 'H*', <>"
b0

C:\Documents and Settings\Owner\Desktop>perl -we"use open ':std',
':locale'; pri
nt chr 0x2591" | perl -l -0777 -e"print unpack 'H*', <>"
Cannot figure out an encoding to use at -e line 1.
Wide character in print at -e line 1.
e29691

C:\Documents and Settings\Owner\Desktop>
____________________________________________________________________



-- 
bulk88 ~ bulk88 at hotmail.com

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=63402

Thread Previous


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