HaxeFoundation / HaxeFoundation/haxe
[unicode] zero byte and strings
Open
discussion
unicode
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
`haxe.io.Bytes.getString()` handles zero byte as a string terminator on some targets:
https://github.com/HaxeFoundation/haxe/blob/4ce4f917671c11041a728c6be073ef02a4b778df/std/js/_std/haxe/io/Bytes.hx#L143-L145
I think this is wrong because zero byte is a valid UTF8 char code.
Contributor guide
Assessment
This issue has not been assessed yet.