develooper Front page | perl.perl5.porters | Postings from January 2012

Re: pack and ASCII

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
January 13, 2012 13:46
Subject:
Re: pack and ASCII
Message ID:
CAHhgV8igwxivMXvw1SM_7MpmZS=8r-W01Bxgz7GJU0cb+YOtcw@mail.gmail.com
On Thu, Jan 12, 2012 at 9:53 PM, Eric Brine <ikegami@adaelis.com> wrote:
> I've gathered all I said in one place. It will be my last post on the
> subject unless you specifically ask me a question ("Eric, ...?")

> That's a pretty serious problem, but it's easy to alleviate. If C<pack> were
> to downgrade when possible, the correct data will be obtained most of the
> time despite the two bugs present. I'm for that.

Shouldn't that be encode instead of downgrade?

> This can be addressed by clarifying the documentation. pack "A" works on all
> text, not just 7-bit ASCII characters.

Is there any actual use case where one may want to use pack "a" with
the current semantics? I can see it for "A", but not for "a".

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