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:
Karl Williamson
Date:
September 10, 2013 01:07
Subject:
Re: [perl #119499] $! returned with UTF-8 flag under UTF-8 localesonly under 5.19.2+
Message ID:
522E70B1.6030509@khwilliamson.com
On 09/02/2013 05:10 PM, Victor Efimov wrote:
>
> 2013/9/1 Father Chrysostomos via RT <perlbug-followup@perl.org
> <mailto:perlbug-followup@perl.org>>
>
>     A new global variable is another option.
>
> perhaps ${^DECODED_ERROR} ?


I have come to believe that this is probably the best way forward.  That 
is, revert the $! change, and tell people who need it to use the new 
global variable which will decode as best it can on the given platform 
based on the locale in effect.

In any event, there should be uniform treatment of $! and $^E.
That means that a parallel variable should be provided for $^E.

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