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

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

Thread Previous | Thread Next
From:
James E Keenan via RT
Date:
May 26, 2013 17:03
Subject:
[perl #63402] use open :locale doesn't work in Windows
Message ID:
rt-3.6.HEAD-2650-1369587787-657.63402-15-0@perl.org
On Sun Feb 22 13:16:46 2009, ikegami@adaelis.com wrote:
> This is a bug report for perl from ikegami@adaelis.com,
> generated with the help of perlbug 1.36 running under perl 5.10.0.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> 
> [ Getting HTTP 500 errors trying to search rt.perl.org to see if this
> bug
> was previously submitted ]
> 
> "use open ':std', ':locale';" doesn't work in Windows.
> 
> >chcp
> Active code page: 850
> 
> >perl -we"use open ':std', ':encoding(cp850)'; print chr 0xB6" | perl
> -l
> -0777 -e"print unpack 'H*', <>"
> f4
> (correct)
> 
> >perl -we"use open ':std', ':locale';          print chr 0xB6" | perl
> -l
> -0777 -e"print unpack 'H*', <>"
> Cannot figure out an encoding to use at -e line 1
> b6
> (should be "f4" with no warnings)
> 
> >perl -we"use open ':std', ':encoding(cp850)'; print chr 0x2591" |
> perl -l
> -0777 -e"print unpack 'H*', <>"
> b0
> (correct)
> 
> >perl -we"use open ':std', ':locale';          print 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
> (should be "b0" with no warnings)
> 
> 
> [Please do not change anything below this line]
> -----------------------------------------------------------------
> ---
> Flags:
>     category=library
>     severity=medium
> ---
> Site configuration information for perl 5.10.0:

Does this problem still persist with Perl 5.18 on Windows?

Thank you very much.
Jim Keenan


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

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