This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: FYI: PR 16134


>>>>> "Bryce" == Bryce McKinlay <mckinlay@redhat.com> writes:

Bryce> Hannes Wallnoefer discovered that the encoder cache lookup in
Bryce> UnicodeToBytes and BytesToUnicode would always fail, because the cache
Bryce> code did not canonicalize the encoding name prior to lookup.

Whoops.

Bryce> +    encoding = canonicalize(encoding);

The original intent of this code was that the original (non-canonical)
name be passed to the iconv converter.  The idea is that our
canonicalization might result in a name not known by the underlying
iconv implementation.

This patch changes that.  And actually I don't know that this has ever
mattered.  But it would be simple to restore this behavior by keeping
the non-canonical name and passing it to the iconv converter
constructor.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]