Closed Bug 350738 Opened 18 years ago Closed 18 years ago

Search service engine ordering code should use localeCompare

Categories

(Firefox :: Search, defect)

2.0 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2

People

(Reporter: Gavin, Assigned: Gavin)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

... so that the sorting is correct for engines with non-ASCII names.
Attached patch patchSplinter Review
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #236096 - Flags: review?(mconnor)
Flags: blocking-firefox2?
Whiteboard: [patch-r?]
Target Milestone: --- → Firefox 2
Comment on attachment 236096 [details] [diff] [review]
patch

good catch.  Is this actually causing weirdness otherwise?
Attachment #236096 - Flags: review?(mconnor) → review+
I think that the rakuten plugin for japanese would be sorted oddly, if Japanese wouldn't actually specify plugin ordering completely.
I bet most intl brandnames are ascii in the internet business as they want their brand to directly map to domain names, too.
Looking at http://people.mozilla.com/~axel/release/search-engines.html (future note, that link is not permanent), all our ShortNames apart from Rakuten at least start with ascii. Japanese Yahoo has several plugins differing only in japanese script, but again, japanese is fully ordered.
Whiteboard: [patch-r?] → [patch-r+]
mozilla/browser/components/search/nsSearchService.js 	1.80
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [patch-r+] → [needs approval]
Attachment #236096 - Flags: approval1.8.1?
Flags: blocking-firefox2? → blocking-firefox2+
Comment on attachment 236096 [details] [diff] [review]
patch

a=mconnor on behalf of drivers for 1.8 branch checkin
Attachment #236096 - Flags: approval1.8.1? → approval1.8.1+
Whiteboard: [needs approval] → [checkin needed (1.8 branch)]
mozilla/browser/components/search/nsSearchService.js 	1.1.2.64
Keywords: fixed1.8.1
Whiteboard: [checkin needed (1.8 branch)]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: