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

[FIX] Ensure proper handling of multi-byte characters in streams #411

Merged
merged 3 commits into from
Feb 7, 2020

Conversation

matz3
Copy link
Member

@matz3 matz3 commented Feb 4, 2020

The stream encoding needs to be set in order to properly handle
multi-byte utf8 characters that are split between different chunks.

See:
https://nodejs.org/api/stream.html#stream_readable_setencoding_encoding

@matz3 matz3 requested a review from RandomByte February 4, 2020 15:57
The stream encoding needs to be set in order to properly handle
multi-byte utf8 characters that are split between different chunks.

See:
https://nodejs.org/api/stream.html#stream_readable_setencoding_encoding
@matz3 matz3 force-pushed the fix-stringReplacer-encoding branch from d84b5b2 to c411974 Compare February 5, 2020 08:37
@coveralls
Copy link

coveralls commented Feb 5, 2020

Coverage Status

Coverage increased (+0.003%) to 90.931% when pulling 773fb6a on fix-stringReplacer-encoding into 7778160 on master.

@matz3
Copy link
Member Author

matz3 commented Feb 6, 2020

It seems that the fix doesn't work for Node 8...

@RandomByte
Copy link
Member

Let's fix this with version 2.0

@matz3
Copy link
Member Author

matz3 commented Feb 6, 2020

Or we skip the test in Node 8?

@RandomByte
Copy link
Member

Great idea, let's do that 👍

@RandomByte
Copy link
Member

Related: SAP/ui5-server#280

@matz3 matz3 merged commit e906ec0 into master Feb 7, 2020
@matz3 matz3 deleted the fix-stringReplacer-encoding branch February 7, 2020 07:48
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.

4 participants