-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latin-1 encoding sometimes mojibake #88
Comments
The issue description is not quite accurate - the problem is malformed Commit f261fc2 codified the behaviour for handling variables without However, neither the PP nor the XS code were made robust against the Worse, the XS code was performing no validation, meaning that such variables Neither of these is good. This commit avoids generating malformed UTF-8 and 0001-Fix-for-issue-88-Latin-1-text-could-end-up-as-malfor.patch.txt |
…olating the variable as-is if it is not a valid UTF-8 sequence (nc), Github issue xslate#88
…etween Perl 5.20 onwards, Github issue xslate#88
…hanged between Perl 5.20 onwards, Github issue xslate#88" This reverts commit d207e1035c384a9c43c2d2710d41e93a5188560d.
…y interpolating the variable as-is if it is not a valid UTF-8 sequence (nc), Github issue xslate#88" This reverts commit 723f10dfc38202c863c1851a73228b03b8604aba.
…s malformed UTF-8 on output" (nc) Now using U8 casts - *(d++) = UTF8_EIGHT_BIT_HI(c); - *(d++) = UTF8_EIGHT_BIT_LO(c); + *(d++) = UTF8_EIGHT_BIT_HI((U8) c); + *(d++) = UTF8_EIGHT_BIT_LO((U8) c);
…s malformed UTF-8 on output" (nc) Now using U8 casts - *(d++) = UTF8_EIGHT_BIT_HI(c); - *(d++) = UTF8_EIGHT_BIT_LO(c); + *(d++) = UTF8_EIGHT_BIT_HI((U8) c); + *(d++) = UTF8_EIGHT_BIT_LO((U8) c); Minor POD improvement
…ormed UTF-8 on output" (nc) Now using U8 casts - *(d++) = UTF8_EIGHT_BIT_HI(c); - *(d++) = UTF8_EIGHT_BIT_LO(c); + *(d++) = UTF8_EIGHT_BIT_HI((U8) c); + *(d++) = UTF8_EIGHT_BIT_LO((U8) c); Minor POD improvement
result
The text was updated successfully, but these errors were encountered: