Skip Menu |
 

This queue is for tickets about the Encode CPAN distribution.

Report information
The Basics
Id: 72359
Status: resolved
Priority: 0/
Queue: Encode

People
Owner: Nobody in particular
Requestors: chansen [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Bug fixes for Unicode.xs
Download (untitled) / with headers
text/plain 827b
Hi Dan, I have addressed the following bugs: UTF-16 Fixed an issue where Unicode.xs produced ill-formed UTF-16 when attempting to encode code points above U+10FFFF. Code points above U+10FFFF is now correctly replaced with U+FFFD. UTF-16 Fixed an issue where Unicode.xs ignored trailing high surrogates when decoding. Trailing high surrogates is now correctly replaced with U+FFFD unless the ENCODE_STOP_AT_PARTIAL flag is set. UCS-2, UTF-16, UTF-32 Fixed an issue where Unicode.xs assumed high surrogate was followed by a low surrogate, this resulted in data loss when isolated high surrogates (ill-formed) where decoded. <0xD800 0x263A> is now correctly decoded as "\x{FFFD}\x{263A}", previously it was decoded as "\x{FFFD}". Sent as a pull request on github, <https://github.com/dankogai/p5-encode/pull/5> -- chansen
Download (untitled) / with headers
text/plain 1012b
It has been long since this is merged in github. Will release 2.45. Dan On Fri Nov 11 10:23:48 2011, CHANSEN wrote: Show quoted text
> Hi Dan, > > I have addressed the following bugs: > > UTF-16 > Fixed an issue where Unicode.xs produced ill-formed UTF-16 when > attempting > to encode code points above U+10FFFF. Code points above U+10FFFF is > now > correctly replaced with U+FFFD. > > UTF-16 > Fixed an issue where Unicode.xs ignored trailing high surrogates when > decoding. Trailing high surrogates is now correctly replaced with > U+FFFD unless the ENCODE_STOP_AT_PARTIAL flag is set. > > UCS-2, UTF-16, UTF-32 > Fixed an issue where Unicode.xs assumed high surrogate was followed by > a low > surrogate, this resulted in data loss when isolated high surrogates > (ill-formed) > where decoded. <0xD800 0x263A> is now correctly decoded as > "\x{FFFD}\x{263A}", > previously it was decoded as "\x{FFFD}". > > Sent as a pull request on github, <https://github.com/dankogai/p5- > encode/pull/5> > > -- > chansen >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.