-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
expr
is failing with multibyte chars
#3132
New issue
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
Comments
Of course, it is about rust. See https://doc.rust-lang.org/book/ch08-02-strings.html#internal-representation Simple testcase:
=>
|
I did some extra testing to check whether we need unicode segmentation here and we don't. GNU
|
Yeah, I am working on a fix :) |
To reproduce: |
Actually, my patch was wrong, it should take in account the locale
seems that we should use MB_CUR_MAX to see the number of bytes |
Hi all, is this still an issue? Chris |
It causes https://github.com/coreutils/coreutils/blob/master/tests/misc/expr-multibyte.pl to fail
GNU:
needs to have a different locale compiled like
The text was updated successfully, but these errors were encountered: