We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
C target treat strings as ASCII:
koka/kklib/src/string.c
Line 831 in a39737a
while JS treats them as unicode: https://tc39.es/ecma262/multipage/text-processing.html#sec-string.prototype.tolowercase
Simple reproducer:
$ echo 'println("Добар Дан".to-lower)' | koka --target c ... Добар Дан $ echo 'println("Добар Дан".to-lower)' | koka --target js ... добар дан
trim operation is also affected by this. In JS it's Unicode, while in C it's not:
trim
$ echo 'println("a\xA0".trim ++ ".")' | koka --target c ... a . $ echo 'println("a\xA0".trim ++ ".")' | koka --target js ... a.
As a user, I'd expect that all targets support Unicode.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
C target treat strings as ASCII:
koka/kklib/src/string.c
Line 831 in a39737a
while JS treats them as unicode:
https://tc39.es/ecma262/multipage/text-processing.html#sec-string.prototype.tolowercase
Simple reproducer:
trim
operation is also affected by this. In JS it's Unicode, while in C it's not:As a user, I'd expect that all targets support Unicode.
The text was updated successfully, but these errors were encountered: