HaxeFoundation / HaxeFoundation/haxe

[unicode] zero byte and strings

Open
#8,201 8 comments 3 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.