Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

localeCompare does not return correct results. #14496

Closed
maiwald opened this issue Aug 22, 2016 · 4 comments
Closed

localeCompare does not return correct results. #14496

maiwald opened this issue Aug 22, 2016 · 4 comments
Labels

Comments

@maiwald
Copy link

maiwald commented Aug 22, 2016

  1. Which version of PhantomJS are you using?
    2.1.1
  2. What steps will reproduce the problem?
    See code below.
  3. Which operating system are you using?
    Mac OS 10.11.6
  4. Did you use binary PhantomJS or did you compile it from source?
    I used the homebrew compiled version
  5. Please provide any additional information below.

This is a re-issue of #11063 since the problem is still present and nothing seems to happen on the old issue.

The following code returns faulty results in phantom.js compared to Chrome (52.0.2743.116) and Firefox (43.0.4):

'11'.localeCompare('100', 'de', {numeric: true}) // returns 1 instead of -1
'11 foo'.localeCompare('100 foo', 'de', {numeric: true}) // returns 1 instead of -1
'foo 11'.localeCompare('foo 100', 'de', {numeric: true}) // returns 1 instead of -1
'äbc'.localeCompare('ax', 'de', {numeric: true}) // returns 1 instead of -1
@vitallium
Copy link
Collaborator

This will be fixed in the upcoming release 2.5.

@vitallium vitallium added this to the Release 2.5 milestone Aug 25, 2016
@vitallium
Copy link
Collaborator

Could you please try again with 2.5 binary? Thanks!

@ghost ghost removed this from the Release 2.5 milestone Jan 10, 2018
@ghost ghost removed the Webkit label Jan 10, 2018
@antoine1fr
Copy link

This will be fixed in the upcoming release 2.5.

When will the version 2.5 be released? I can't see any information related to 2.5 in the tags, branches and change log. There is no information in the change log regarding versions newer than 2.1.0. I'm using 2.1.16 (phantomjs-prebuilt@2.1.16) but am still experiencing the bug.

@stale
Copy link

stale bot commented Dec 28, 2019

Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants