Re: [rt.cpan.org #126280] 90-rt122949.t fails when "Use Unicode UTF-8 for worldwide language support" is enabled
[email protected] ("
[email protected] via RT")
Thu, 16 Aug 2018 08:05:32 -0400
| Newsgroups |
perl.par |
| Message-ID |
<[email protected]> |
Thu Aug 16 08:05:30 2018: Request 126280 was acted upon.
Transaction: Correspondence added by [email protected]
Queue: PAR-Packer
Subject: Re: [rt.cpan.org #126280] 90-rt122949.t fails when "Use Unicode UTF-8 for worldwide language support" is enabled
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: open
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=126280 >
On Thu, 16 Aug 2018 07:48:59 -0400
"Roderich Schupp via RT" <[email protected]> wrote:
> You're right, I once again got fooled by the idiotic Unicode handling in Perl.
Yeah, I hate it too.
> Can you add
>
> use Encode qw( encode );
>
> near the top of 90-rt122949.t and replace the "...\x{85}..." test case with
>
> [ encode("UTF-8", qq[qq[a\x{85}b]) ],
> [ encode("UTF-8", qq[qq[smiley \x{263A}]) ],
> [ encode("UTF-8", qq[german umlaute \x{E4}\x{F6}\x{FC}]) ],
> [ encode("UTF-8", qq[chinese zhongwen \x{4E2D}\x{6587}]) ],
>
> and rerun the failing test both with and without "Use Unicode..."?
You made a small typo (doubled 'qq['), but after fixing it, it passes
both with checkbox enabled and disabled.
>
> Cheers, Roderich