Andrew Dunbar <[EMAIL PROTECTED]> wrote:
> getNativeEncodingName()
> getNativeSystemEncodingName()
> getNative8BitEncodingName()
> getNativeUnicodeEncodingName()
> 
> I've noticed that some code treats the second two as
> though they are mutually exclusive.  This is not the
> case at all.  As noted in the comment/documentation
> for getNative8BitEncodingName() - it is perfectly
> okay for it to return UTF-8 or any multibyte CJK
> encoding - the only requirement is that the encoding
> is a superset of ASCII.
> Some code is calling this function to get an
> ISO-8859-x encoding when the native encoding is UTF-8.
> I believe there are some very subtle bugs which may be
> due to this.

It is most definitely not OK to return utf8 or multibyte encodings in 
getNative8BitEncodingName(); for start neither of these are 8-bit 
encodings, but more importantly, this function was added 
specifically for the code that that you mention.

Tomas

Reply via email to