Eike Rathke wrote:
[...]
Btw, your "CP437" values in ImplTextEncodingData.mpBestMimeCharset and
mpBestUnixCharset most certainly are not correct.

Coded sets like your MIK are somewhat a corner case, unregistered, not
a standard, but to some extend commonly used in one region.

Maybe Stephan Bergmann has an opinion on this?

  Eike

ImplTextEncodingData.mpBestMime/UnixCharset are used in the two functions rtl_getBestMime/UnixCharsetFromTextEncoding, wich are defined to "Map from a text encoding to the best matching MIME/Unix charset." This of course is a pretty useless definition, as "best matching" is undefined. It would probably be worthwhile to check all the current places where those two functions are called in the OOo code base, to find out what semantics the call sides expect, and improve the documentation... Anyway, Eike's recommendation in another mail to effectively choose as "best matching" the "smallest" charset that encompasses all the characters of the given charset is definitely a good approach (also note that it is acceptable to specify NULL for mpBestMime/UnixCharset).

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to