-
Notifications
You must be signed in to change notification settings - Fork 340
String.to{Low,Upp}case() gives invalid result #462
Comments
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. |
Still an issue as of |
It should only be an issue on Windows. Can you confirm which platform you are running on? |
@jackhorton sorry for missing this detail in the original report – this is indeed tested on Windows 10 (x64). |
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. |
Still an issue as of |
Fixed in |
The following fails with
[email protected]
:Discovered in mishoo/UglifyJS#2886 (comment)
Other platforms are working as expected:
The text was updated successfully, but these errors were encountered: