<i18n dev> Supporting charset GB18030-2005
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 17 11:49:50 UTC 2021
On 16/11/2021 19:02, Pushkar N Kulkarni wrote:
> Hi Alan,
>
> Thanks. I appreciate your response.
>
> Yes, I think GB13080 must continue to be GB13080-2000 for now. I was initially hoping to add a new character set with the name GB13080-2005. But I guess your suggestion of internally mapping one of the two versions (2000 or 2005) to "GB13080", based on the value of a new System property, version 2000 being the default, could be a better approach.
We could start out by adding GB18030-2005, as you suggest.
A potential next step would be to rename GB13080 to GB13080-2000, with
"GB13080" as an alias. As it stands, the charset name is "GB13080" with
"GB13080-2000" as an alias so it should be compatible with code that use
Charset.forName. It's possible this change may be noticed by code that
does lookups in other ways or expects getName to be match the name
specified to forName so that would be a feature release only change.
If there is a strong need then it should be feasible to have a system
property to change GB13080 but maybe it's not needed in the short/medium
term when some operating systems are still using -2000.
-Alan
More information about the i18n-dev
mailing list