Integrated: 8307953: [AIX] C locale's font setting was changed by JEP 400
Ichiroh Takiguchi
itakiguchi at openjdk.org
Tue Jun 6 22:23:07 UTC 2023
On Thu, 11 May 2023 18:23:45 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:
> On AIX, lib/fontconfig.bfc file is used to find font setting.
> I ran SwingSet2 List demo program with AIX C locale.
> JDK21's line spacing is larger then JDK17.
> Screen shots are in [JDK-8307953](https://bugs.openjdk.org/browse/JDK-8307953).
> When I used `-Dfile.encoding=COMPAT` option on AIX C locale, SwingSet2 worked fine as expected.
>
> This situation happens `Charset.defaultCharset()` always returns UTF-8 after JEP 400 by default.
> According to following URL
> https://docs.oracle.com/en/java/javase/20/intl/font-configuration-files.html
>
>> Encoding - the canonical name of the default encoding, as provided by java.nio.charset.Charset.defaultCharset().name().
>
> For C and POSIX locale, following entry is added into `src/java.desktop/aix/data/fontconfig/fontconfig.propertie`
>
> sequence.allfonts.UTF-8.en.=latin-1
>
>
> Additionally, following parts are changed:
> `src/java.desktop/aix/data/fontconfig/fontconfig.propertie`s has invalid charset name.
> For Java for AIX:
> - Encoding name for AIX's Zh_TW locale is `big5`, charset name should be `x-IBM950` instead of `big5`.
> - Encoding name for AIX's zh_CN locale is `IBM-eucCN`, charset name should be `x-IBM1383` instead of `x-EUCCN`.
>
> In my understanding, this fix affects just for AIX platform.
>
> Note:
> macos-x64 tier1 test was failed, but I think it's not related this PR.
This pull request has now been integrated.
Changeset: a08c5cb3
Author: Ichiroh Takiguchi <itakiguchi at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a08c5cb3f1be7a20c8f955951d1605bb8b1c1aa4
Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
8307953: [AIX] C locale's font setting was changed by JEP 400
Reviewed-by: naoto, prr
-------------
PR: https://git.openjdk.org/jdk/pull/13937
More information about the client-libs-dev
mailing list