localeCompare implementation is not following the specification #11063
Comments
Any update on this ? Also occurs on phantomjs 1.9.2 on Linux:
This makes it impossible to use unit tests to verify sort orders with continuous integration. |
Hi there Any update on this issue? Anyone know of a workaround? Thanks! |
Also this:
This returns -1 in Firefox and Chrome, but it returns 1 in PhantomJS 1.9.7. I am assuming Firefox and Chrome both implements the method according to the standard |
👍 Our tests fail in PhantomJS because |
👍 |
Fixed in 2.0 |
@vitallium will the localeCompare fix in 2.0 also address the following problem in 1.9 with combining diacritical marks, or should I make a new issue describing what I'm seeing here? —Thanks var accent = "e with acute accent: é", // Acute accented character
combiningDiacritic = "e with acute accent: e\u0301"; // combining diacritical character
console.log('localeCompare: ' + combiningDiacritic.localeCompare(accent)); Chrome, Firefox output: |
PhantomJS handles localeCompare unfortunately a bit differently, so we have to do a different test for it. See ariya/phantomjs#11063
Hi @vitallium. Appreciate your work (and all contributors') on this. I'm still seeing this issue even in 2.1.3. Wanted to confirm if something happened with the fix (if it got included or excluded by somehow). Thank you! |
I'm using v2.1.1 and |
Eyesonl...@gmail.com commented:
Disclaimer:
This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #1063.
🌟 2 people had starred this issue at the time of migration.
The text was updated successfully, but these errors were encountered: