You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
String.to{Low,Upp}case() gives invalid result #462
Looks like we are also inconsistent between different OS: when I try your examples on Linux, the second case works correctly but the first does not. @jackhorton should we be using ICU for upper/lower casing?
Interesting. This is probably a Chakra bug, rather than a Node-ChakraCore bug, so I will make something to track this over there. With that being said, I dont think ICU should be required here, since the whole point of toLocale{Upper|Lower}Case is that they use locale-sensitive casing rules, so we are probably passing some bad flags to the Win32/POSIX APIs that handle the basic comparison.
I can't confirm whether the issue exists on say Ubuntu, as mishoo/UglifyJS#3087 is blocked by #509, i.e. the process crashed before it can get to the test relevant to this report.
Activity
MSLaguana commentedon Feb 8, 2018
Looks like we are also inconsistent between different OS: when I try your examples on Linux, the second case works correctly but the first does not. @jackhorton should we be using ICU for upper/lower casing?
jackhorton commentedon Feb 9, 2018
Interesting. This is probably a Chakra bug, rather than a Node-ChakraCore bug, so I will make something to track this over there. With that being said, I dont think ICU should be required here, since the whole point of toLocale{Upper|Lower}Case is that they use locale-sensitive casing rules, so we are probably passing some bad flags to the Win32/POSIX APIs that handle the basic comparison.
alexlamsl commentedon Apr 28, 2018
Still an issue as of
v10.0.0jackhorton commentedon Apr 29, 2018
It should only be an issue on Windows. Can you confirm which platform you are running on?
alexlamsl commentedon Apr 29, 2018
@jackhorton sorry for missing this detail in the original report – this is indeed tested on Windows 10 (x64).
alexlamsl commentedon Apr 29, 2018
I can't confirm whether the issue exists on say Ubuntu, as mishoo/UglifyJS#3087 is blocked by #509, i.e. the process crashed before it can get to the test relevant to this report.
alexlamsl commentedon May 26, 2018
Still an issue as of
v10.1.0(on Windows)alexlamsl commentedon Jul 26, 2018
Fixed in
v10.6.0- thanks!