[buffer] fill() for utf16le is broken
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 35.1k
Closed
Closed
Description
opened
on Nov 29, 2016- Version: v6.9.1
- Platform: Linux
- Subsystem: buffer
Example of brokenness:
Buffer.allocUnsafeSlow(16).fill('a', 'utf16le').toString('utf16le') // expect: 'aaaaaaaa' // get: '慡慡慡慡慡慡慡慡'
Seems to be treating the character as latin1.
Metadata
Metadata
Assignees
No one assigned
Type
No type
Projects
No projects
Milestone
No milestone
Relationships
None yet
Development
No branches or pull requests
Issue actions