HaxeFoundation / HaxeFoundation/haxe
Utf8 "iter" issue for cpp target
Open
platform-cpp
unicode
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
Utf8 "iter" issue, printed only two characters. Detected on haxe release 4.0.2, 64 bit windows.
trace("ὕαλον".length);
haxe.Utf8.iter("ὕαλον", function(char) {
trace("[" + String.fromCharCode(char) + "] " + char);
});
Printed:
5
[ὕ] 8021
[α] 945
Rest chars missing.
I know Utf8 deprecated, but it still included in haxe and can be presented in developers code.
Contributor guide
Assessment
This issue has not been assessed yet.