RFR: 8230873 [AIX] GUI app does not work with UTF-8 locale on minimum software requirements

Ichiroh Takiguchi takiguc at linux.vnet.ibm.com
Tue Sep 24 07:54:20 UTC 2019


Hello.

I'm sorry, I made a typo in the Subject.

Could you review the fix ?

Bug:    https://bugs.openjdk.java.net/browse/JDK-8230873
Change: https://cr.openjdk.java.net/~itakiguchi/8230873/webrev.00/

Thanks,
Ichiroh Takiguchi
IBM Japan, Ltd.

On 2019-09-24 02:16, Ichiroh Takiguchi wrote:
> Hello.
> 
> Could you review the fix ?
> 
> Bug:    https://bugs.openjdk.java.net/browse/JDK-8230873
> Change: https://cr.openjdk.java.net/~itakiguchi/8230873/webrev.00/
> 
> GUI application does not work with AIX's JA_JP UTF-8 locale on minimum
> software requirements and settings because of following exception:
>   Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
>   class sun.font.CompositeFont cannot be cast to class 
> sun.font.PhysicalFont
>   (sun.font.CompositeFont and sun.font.PhysicalFont are in module
>   java.desktop of loader 'bootstrap')
> 
> About the reasons for this exception:
> 1. Default physical font is not defined (like Lucida sans)
> 2. XLFD charset name entries for JA_JP locale have Underscore character
>    (Underscore character replaces with Space character on 
> fontconfig.proeprties
>    (fontconfig.bfs) file loading phase.)
> 
> About "1", I'd like to handle it by JDK-8221741 [1].
> About "2", OpenJDK for AIX is using fontconfig.properties 
> (fontconfig.bfc) file
> to find out TrueType fonts.
> On AIX JCK UTF-8 locales, Java cannot find out TrueType font because
> above XLFD charset name issue.
> 
> This fix only changes fontconfig.properties for AIX platform
> * make/data/fontconfig/aix.fontconfig.properties
> 
> [1] https://bugs.openjdk.java.net/browse/JDK-8230873
> 
> Thanks,
> Ichiroh Takiguchi
> IBM Japan, Ltd.


More information about the ppc-aix-port-dev mailing list