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

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

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
August 28, 2013 19:43
Subject:
Re: [perl #119499] $! returned with UTF-8 flag under UTF-8 localesonly under 5.19.2+
Message ID:
CAHhgV8iSk+Mp_hwpuHMV2f4DNJyK_ctWjgvRVt3Uwd88vnvfwA@mail.gmail.com
On Wed, Aug 28, 2013 at 10:52 AM, Victor Efimov
<perlbug-followup@perl.org>wrote:

> $! returned as character string under 5.19.2+ and UTF-8 locales. But as
> binary strings
> under single-byte encoding locales.
>
> I believe this is useless and just makes it harder to decode $! value
> properly.
>

Automatic decoding is definitely the more useful behavior. I agree
inconsistency is a bad thing though. Not sure it's easy to fix though.
Patches welcome.

Also I am not sure if it will be possible to decode it when language with
> Latin-1 -only characters is set.


AFAIK that should work perfectly fine.

Leon

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