-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
TextDecoder regressed for ascii, windows-1252, ... encodings in v23.4.0 #56219
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. |
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: