-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
TextDecoder regressed for ascii, windows-1252, ... encodings in v23.4.0 #56219
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Verified.
|
This is related to #55275 @mertcanaltin Can you check? I think that the C++ function returns a buffer, not a string. |
hello I'm looking into this, I'll post an improvement |
hello, I am fixed this problem after then ı testet my local enviorement, ı see improvement this problem ➜ node git:(mert/fast-path-fix) ./node
Welcome to Node.js v24.0.0-pre.
Type ".help" for more information.
> b = new Uint8Array([97, 108, 101])
Uint8Array(3) [ 97, 108, 101 ]
> decoder = new TextDecoder('ascii')
TextDecoder { encoding: 'windows-1252', fatal: false, ignoreBOM: false }
> decoder.decode(b)
'ale'
> many thanks for reporting the bug and for the suggestions. |
@mertcanaltin @lemire since this is an impactful regression rolling out as part of |
@lutzroeder It is definitively getting fixed in the next release. As to whether this next release is labelled There is also a related issue: nodejs/performance#183 That last one is troubling as well. |
nodejs/node#56219 breaks our base-64 encoder. Node is off spec and should release fix quickly. Normally I wouldn't patch but in this case workaround is innocuous. Fixes project-chip#1516
nodejs/node#56219 breaks our base-64 encoder. Node is off spec and should release fix quickly. Normally I wouldn't patch but in this case workaround is innocuous. Fixes #1516 Co-authored-by: Ingo Fischer <github@fischer-ka.de>
Version
23.4.0
Platform
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Reproduces reliably.
What is the expected behavior? Why is that the expected behavior?
Returns a string instead of a buffer. See output from
v23.3.0
:What do you see instead?
Returns a buffer.
Additional information
@mertcanaltin @RafaelGSS @anonrig @jasnell @lemire @targos #55275
The text was updated successfully, but these errors were encountered: