develooper Front page | perl.perl5.porters | Postings from March 2014

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

Thread Previous | Thread Next
From:
Aristotle Pagaltzis
Date:
March 27, 2014 10:57
Subject:
Re: [perl #119499] $! returned with UTF-8 flag under UTF-8 localesonly under 5.19.2+
Message ID:
20140327105604.GA461@plasmasturm.org
* Karl Williamson <public@khwilliamson.com> [2014-03-27 03:10]:
> Another possibility to get programs like ack to work unchanged is to
> add a non-printing above-Latin1 character to the stringification of $!
> when it is UTF-8 and there are only Latin1 characters in it.
> A possibility is a ZERO WIDTH SPACE. Then do_print() wouldn't try to
> downgrade. The drawback is that code that analyzes $! could be thrown
> off. But code generally should be analyzing the numeric value anyway,
> and not the string representation

Maybe you can attach magic that prevents a downgrade?

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