Skip to content
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

Avoid generating malformed UTF-8 and replacement characters by inter… #160

Closed
wants to merge 3 commits into from

Conversation

pepl
Copy link

@pepl pepl commented Feb 15, 2016

…polating the variable as-is if it is not a valid UTF-8 sequence (nc), Github issue #88

@syohex
Copy link
Contributor

syohex commented Feb 15, 2016

Thanks PR. However tests are failed on Perl 5.20 or higher versions.

@pepl
Copy link
Author

pepl commented Apr 15, 2016

Looks like with Perl 5.20 and higher the semantics of one-byte hex notated characters changed. Now covering that with the tests

@pepl
Copy link
Author

pepl commented Apr 20, 2016

Nicholas Clark provided an improved version of the patch. Travis CI checks pass.

@syohex
Copy link
Contributor

syohex commented Apr 20, 2016

Could you squash commits ?

knowledgejunkie and others added 3 commits April 20, 2016 10:29
…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
@pepl
Copy link
Author

pepl commented Apr 20, 2016

Squashed

@syohex syohex mentioned this pull request Apr 20, 2016
@syohex syohex closed this in 3466b56 Apr 20, 2016
@syohex
Copy link
Contributor

syohex commented Apr 20, 2016

@pepl Thanks great work. I have cherry-picked your commit. 👍

skaji added a commit that referenced this pull request Nov 30, 2017
Changelog diff is:

diff --git a/Changes b/Changes
index 6160d1e7..605d1077 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,15 @@
 Revision history for Perl extension Text::Xslate

+{{$NEXT}}
+
+v3.5.0 2017-11-30T15:57:50Z
+    - Migrate to using minil (#179)
+    - Improve perl 5.8 support (#182)
+    - Use version->declare() to declare $VERSION (#182)
+    - Make `prove -br t` work with dot-not-in-INC perls (#184)
+    - Run tests against both XS and pureperl (#185)
+    - Fix typo (anirvan #181)
+
 3.4.0 2017-01-20 15:00:00+0900
     - Fix tied hash issue(#173)
     - Fix encoding issue(#160)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants