Closed Bug 844776 Opened 11 years ago Closed 11 years ago

Locales that currently use ISO-8859-1 as the fallback encoding should use windows-1252 instead

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hsivonen, Assigned: hsivonen)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In in en-US, IE reports windows-1252 as the encoding when the fallback encoding is in use. Using the windows-1252 label rather than the ISO-8859-1 label is required by the Encoding Standard.

We should change the fallback encoding from ISO-8859-1 to windows-1252 in locales that currently use ISO-8859-1 as the fallback. This wouldn't change the decoder behavior—just the label reported.
Assignee: nobody → hsivonen
Blocks: encoding
Status: NEW → ASSIGNED
Blocks: 844042
Attachment #718982 - Flags: review? → review?(smontagu)
Blocks: 844461
CCing Dwayne. I think changing the entries here without changing the keys is the right thing, but I'd like to hear from Dwayne on how that'll show on pootle. If it wouldn't show at all, that'd be fine, if it showed, we should make sure to not get a host of translations of windows-1252 or something by prior outreach.
Bug 844461 will take care of locales that don't migrate right away. However, to land that patch, the test changes in this patch are needed. And the patch over in bug 844461 will need uplift ASAP, so if we're going to slow things down over here, I'll have to move the mochitest changes over.
Comment on attachment 718982 [details] [diff] [review]
Change to the new canonical label

Review of attachment 718982 [details] [diff] [review]:
-----------------------------------------------------------------

OK with me, if Dwayne has no problem.
Attachment #718982 - Flags: review?(smontagu) → review+
Comment on attachment 718982 [details] [diff] [review]
Change to the new canonical label

Review of attachment 718982 [details] [diff] [review]:
-----------------------------------------------------------------

I've got concerns here. We're having 4 values of intl.charset.default. Why would these depend on platform? And even more so, it seems to me that we're actually using the platform-dependent from global-platform (http://mxr.mozilla.org/mozilla-central/source/modules/libpref/src/init/all.js#1331) instead of the platform-independent one.

I'd rather see us remove the ones in platforms, and just use the one in global.
(In reply to Axel Hecht [:Pike] from comment #5)
> I'd rather see us remove the ones in platforms, and just use the one in
> global.

That's bug 488433, and I think it's orthogonal to this bug
Other bugs landed and made this one moot.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: