Closed Bug 440587 Opened 16 years ago Closed 6 years ago

String.localeCompare produces the same result regardless of local setting. This is required to correctly sort a list of text items in the users default language.

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: cpeyer, Unassigned)

References

Details

Steps to reproduce: On Windows 1. Execute sample code below 2. Under Control Panel , Regional Settings in the Regional Options tab, select English (United States) 3. Press the compare button 4. Under Control Panel , Regional Settings in the Regional Options tab, select French(France) as: function MyCompare() : void { var s:String = "c?te"; myText.text = s.localeCompare("cot?").toString(); } MyCompare(); Actual Results: In both cases the comparison returns a negative number. Expected Results: The text displays 133 for the English setting and a negative number with the French Setting. Workaround (if any): None. A prototype implemention for Mac and Windows can be found in: in flashfarm:1666 and //depot/users/gs/main/player/FlashPlayer. See Changelists 415177, 414259. Transferred Comments: Chris Peyer - Thu Jun 19 18:36:14 CDT 2008 Changed code to be as only.
Flags: in-testsuite?
Flags: flashplayer-triage+
Flags: flashplayer-qrb?
Blocks: AS3_Builtins
Flags: flashplayer-qrb? → flashplayer-qrb+
Target Milestone: --- → Future
Flags: flashplayer-needsversioning?
Flags: flashplayer-needsversioning? → flashplayer-needsversioning+
Depends on: 535770
Summary: String.localeCompare produces the same result regardless of local setting. This is required to correctly sort a list of text items in the users default lanaguage. → String.localeCompare produces the same result regardless of local setting. This is required to correctly sort a list of text items in the users default language.
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.