Closed Bug 239942 Opened 22 years ago Closed 15 years ago

Mozilla doesn't support drop in encoder/decoders

Categories

(Core :: Internationalization, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mkaply, Assigned: smontagu)

Details

Attachments

(1 file)

Currently if I create a new encoder/decoder in a DLL and drop it into components, Mozilla won't recognize it because it requires an entry in charsetAlias.properties. My fix for this is in nsCharsetAliasImpl.cpp. If GetPreferred fails (we can't find it in the properties file) we check to see if that encoding is registered as a contract id. If it is, we let it pass as a character set. This allows drop in encoder/decoders without changes to charsetAlias.properties.
This patch checks for an encoder if the value is not in the charsetAlias.properties file by looking at the components that have been registered.
Attachment #145652 - Flags: review?(smontagu)
Comment on attachment 145652 [details] [diff] [review] Allow any encoder r=smontagu, assuming that you actually need this :-)
Attachment #145652 - Flags: review?(smontagu) → review+
Extentions can easily override charsetAlias.properties. For example, see Big5-HKSCS Patch. https://addons.mozilla.org/firefox/addon/9294 Is this bug still valid?
QA Contact: amyy → i18n
Do we really want this? I don't think we should be encouraging even more encoding proliferation.
Probably not anymore. Simon?
Agreed
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: