JDK-4346689 : Arabic text is not rendered. Problem in JTextFields.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2000-06-20
  • Updated: 2001-03-21
  • Resolved: 2001-03-19
Related Reports
Duplicate :  
Description
Solaris locale=ar.

Machine information is attached in the file algol.dat.
The test was run using Merlin build 20.

Install the Solaris 8 patches 108652-08 and 108940-03.
FontTest.tar is an attachment.  Retrieve the source code
and the script FontTest.ksh.  Login to the test locale,
export JAVA_HOME into your environment, and run
FontTest.ksh.

The program will bring up five panes entitled 
(1) AWT Labels, (2) AWT TextFields, (3) Swing Components,
(4) Java2D Stroke, and (5) Java2D Fill.

In each pane there is a grid of Strings.  There are 5 rows
and 4 columns.  The rows are labelled (1) Serif,
(2) SansSerif, (3) Monospaced, (4) Dialog, and 
(5) DialogInput.  The columns are labelled (1) Plain,
(2) Italic, (3) Bold, and (4) BoldItalic.

Also on each pane, in the upper right corner, are displayed
the locale and language, where the language is displayed
in the locale's language and is liable to contain non-English
characters.

No Arabic will be visible in any of the panes.

allan.jacobs@Eng 2000-06-19

I've replaced the attached source code.  The new version tests
JTextFields.

There are a lot of new Recommended and Security patches for
Solaris 8.  I applied them before testing again.

AWT is unsupported.  The Swing panes seem to work--except that
there is a stray unprintable character at the end of the text
in all panes of the new JTextFields panel.

allan.jacobs@Eng 2001-03-15

Comments
EVALUATION This bug was filed before the integration of the Kestrel/Solaris and Ladybird changes. Can you please retry on a current build to see whether the problem still exists? norbert.lindenberg@Eng 2000-11-27 The behavior has changed. Build 42 dumps core. algol% uname -a SunOS algol 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-2 algol% showrev -p Patch: 109137-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu Patch: 108974-06 Obsoletes: 109343-04 Requires: Incompatibles: Packages: SUNWcsu, SUNWcsr, SUNWcarx, SUNWcsxu, SUNWhea Patch: 108975-03 Obsoletes: Requires: 108968-01, 108974-01, 108977-01 Incompatibles: Packages: SUNWcsu, SUNWvolu Patch: 108528-03 Obsoletes: 109153-01, 109656-01, 109291-06, 109663-01, 109309-02, 109345-02 Requires: Incompatibles: Packages: SUNWcsu, SUNWcsr, SUNWcarx, SUNWcar, SUNWcpr, SUNWcprx, SUNWcsxu, SUNWhea, SUNWmdb, SUNWmdbx, SUNWpmu, SUNWpmr, SUNWpmux, SUNWsrh, SUNWtnfc, SUNWtnfcx Patch: 108875-07 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu, SUNWcsr, SUNWcslx, SUNWcsl, SUNWcarx, SUNWarc, SUNWcstl, SUNWcstlx, SUNWhea Patch: 109783-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu Patch: 108985-02 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu Patch: 109277-01 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu Patch: 108977-01 Obsoletes: Requires: 108974-01 Incompatibles: Packages: SUNWcsr, SUNWhea, SUNWvolu, SUNWvolux Patch: 108968-02 Obsoletes: Requires: 108974-01, 108977-01 Incompatibles: Packages: SUNWcsr, SUNWesu, SUNWhea, SUNWvolu, SUNWvolux Patch: 108652-18 Obsoletes: Requires: Incompatibles: Packages: SUNWxwfnt, SUNWxwplt, SUNWxwplx, SUNWxwinc, SUNWxwman, SUNWxwpmn, SUNWxwslb Patch: 108940-12 Obsoletes: Requires: Incompatibles: Packages: SUNWmfrun, SUNWdtbax Patch: 109320-01 Obsoletes: Requires: Incompatibles: Packages: SUNWpcu, SUNWpsu Patch: 109951-01 Obsoletes: Requires: Incompatibles: Packages: SUNWjwnsu algol% echo $LANG ar algol% env |grep LC LC_MONETARY=ar LC_TIME=ar LC_MESSAGES=C LC_CTYPE=ar LC_COLLATE=ar LC_NUMERIC=ar algol% /usr/local/java/jdk1.4.0/solsparc/bin/java_g -Djava.compiler=NONE -cp . FontTest default to Motif 2.1, os is: 5.8 Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 136 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 140 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 144 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 148 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 167 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 172 in java.awt.Container Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 220 in java.awt.Window Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 288 in java.awt.Frame Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 280 in java.awt.Frame Locale: ar_EG/\307\344\331\321\310\352\311\212Variant: Country: EG User.language: ar User.region: EG /usr/openwin/lib/locale/ar/X11/fonts/TrueType/AKHBARBD.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/X11/fonts/TrueType/CourierNew-BoldItalic.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/locale/ar/X11/fonts/TrueType/SHAYMT.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/X11/fonts/TrueType/Arial.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/X11/fonts/TrueType/CourierNew-Bold.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/locale/ar/X11/fonts/TrueType/SHAYBD.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/X11/fonts/TrueType/Arial-BoldItalic.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/locale/ar/X11/fonts/TrueType/AKHBARMT.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/X11/fonts/TrueType/CourierNew.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/locale/ar/X11/fonts/TrueType/NASKHMT.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/locale/ar/X11/fonts/TrueType/NASKHBD.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman-Bold.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/X11/fonts/TrueType/CourierNew-Italic.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/X11/fonts/TrueType/Arial-Bold.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/X11/fonts/TrueType/Arial-Italic.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman-Italic.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/X11/fonts/TrueType/TimesNewRoman-BoldItalic.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaTypewriterRegular.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaTypewriterBold.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaTypewriterOblique.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaTypewriterBoldOblique.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaBrightRegular.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaBrightDemiBold.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaBrightItalic.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaBrightDemiItalic.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaSansRegular.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaSansDemiBold.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaSansOblique.ttf - CMAP 3,1 found at offset 282. /usr/local/java/jdk1.4/solsparc/jre/lib/fonts/LucidaSansDemiOblique.ttf - CMAP 3,1 found at offset 282. /usr/openwin/lib/locale/ar/X11/fonts/TrueType/AKHBARMT.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/X11/fonts/TrueType/CourierNew.ttf - CMAP 3,1 found at offset 282. wDOW=50, wABC=72 Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 128 in sun.java2d.SunGraphics2D Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 132 in sun.java2d.SunGraphics2D Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 136 in sun.java2d.SunGraphics2D /usr/openwin/lib/locale/ar/X11/fonts/TrueType/SHAYBD.ttf - CMAP 3,1 found at offset 284. /usr/openwin/lib/X11/fonts/TrueType/Arial-Bold.ttf - CMAP 3,1 found at offset 282. Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 204 in java.awt.TextField awt_motif_getIMStatusHeight: Height = 34# # An unexpected exception has been detected in native code outside the VM.# Program counter=0x528290 # # Problematic Thread: prio=5 tid=0x3a4a0 nid=0x1 runnable # Dumping core.... Abort (core dumped) allan.jacobs@Eng 2000-11-30 Xueming asked me to test this bug, here it is: Ran on a Solaris 8 machine, nothing displayed on the panes (all blank), and got this: i18n-sol8-b:/home/minchit/bug4346689_6690 2 % java_g -Djava.compiler=None -cp . FontTest default to Motif 2.1, os is: 5.8 Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 144 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 148 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 152 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 156 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 176 in java.awt.Component Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 184 in java.awt.Container Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 232 in java.awt.Window Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 304 in java.awt.Frame Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 296 in java.awt.Frame Locale: ar_EG/SUN-ISO8859-6�������������� Variant: Country: EG User.language: ar User.region: EG wDOW=50, wABC=72 Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 128 in sun.java2d.SunGraphics2D Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 132 in sun.java2d.SunGraphics2D Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 136 in sun.java2d.SunGraphics2D Java HotSpot(TM) Client VM warning: VerifyJNIFields: long offset 216 in java.awt.TextField java.awt.Font[family=serif,name=Serif,style=plain,size=20] java.awt.Font[family=serif,name=Serif,style=bold,size=20] java.awt.Font[family=serif,name=Serif,style=italic,size=20] java.awt.Font[family=serif,name=Serif,style=bolditalic,size=20] java.awt.Font[family=sansserif,name=SansSerif,style=plain,size=20] java.awt.Font[family=sansserif,name=SansSerif,style=bold,size=20] java.awt.Font[family=sansserif,name=SansSerif,style=italic,size=20] java.awt.Font[family=sansserif,name=SansSerif,style=bolditalic,size=20] java.awt.Font[family=monospaced,name=Monospaced,style=plain,size=20] java.awt.Font[family=monospaced,name=Monospaced,style=bold,size=20] java.awt.Font[family=monospaced,name=Monospaced,style=italic,size=20] java.awt.Font[family=monospaced,name=Monospaced,style=bolditalic,size=20] java.awt.Font[family=dialog,name=Dialog,style=plain,size=20] java.awt.Font[family=dialog,name=Dialog,style=bold,size=20] java.awt.Font[family=dialog,name=Dialog,style=italic,size=20] java.awt.Font[family=dialog,name=Dialog,style=bolditalic,size=20] java.awt.Font[family=dialoginput,name=DialogInput,style=plain,size=20] java.awt.Font[family=dialoginput,name=DialogInput,style=bold,size=20] java.awt.Font[family=dialoginput,name=DialogInput,style=italic,size=20] java.awt.Font[family=dialoginput,name=DialogInput,style=bolditalic,size=20] awt_motif_getIMStatusHeight: Height = 34 An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 4 occurred at PC=0x5b9028 Function name=(N/A) Library=(N/A) NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at sun.awt.motif.MTextFieldPeer.setFont(Native Method) at sun.awt.motif.MComponentPeer.initialize(MComponentPeer.java:149) at sun.awt.motif.MTextFieldPeer.initialize(MTextFieldPeer.java:60) at sun.awt.motif.MComponentPeer.init(MComponentPeer.java:192) at sun.awt.motif.MComponentPeer.<init>(MComponentPeer.java:196) at sun.awt.motif.MTextFieldPeer.<init>(MTextFieldPeer.java:64) at sun.awt.motif.MToolkit.createTextField(MToolkit.java:140) at java.awt.TextField.addNotify(TextField.java:206) - locked <f43d42f8> (a java.awt.Component$AWTTreeLock) at java.awt.Container.addNotify(Container.java:1851) - locked <f43d42f8> (a java.awt.Component$AWTTreeLock) at javax.swing.JComponent.addNotify(JComponent.java:4052) at java.awt.Container.addImpl(Container.java:468) - locked <f43d42f8> (a java.awt.Component$AWTTreeLock) at javax.swing.JTabbedPane.insertTab(JTabbedPane.java:556) at javax.swing.JTabbedPane.addTab(JTabbedPane.java:629) at javax.swing.JTabbedPane.add(JTabbedPane.java:713) at FontTest.addPanel(FontTest.java:101) at FontTest.main(FontTest.java:259) Dynamic libraries: 0x10000 /home/minchit/jdk1.4/bin/../bin/sparc/native_threads/java_g 0xff360000 /usr/lib/libthread.so.1 0xff3a0000 /usr/lib/libdl.so.1 0xff280000 /usr/lib/libc.so.1 0xff270000 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 0xfd800000 /home/minchit/jdk1.4/jre/lib/sparc/client/libjvm_g.so 0xff210000 /usr/lib/libCrun.so.1 0xff1f0000 /usr/lib/libsocket.so.1 0xff100000 /usr/lib/libnsl.so.1 0xff1c0000 /usr/lib/libm.so.1 0xff240000 /usr/lib/libw.so.1 0xff0d0000 /usr/lib/libmp.so.2 0xff0a0000 /home/minchit/jdk1.4/jre/lib/sparc/native_threads/libhpi_g.so 0xff070000 /home/minchit/jdk1.4/jre/lib/sparc/libverify_g.so 0xff030000 /home/minchit/jdk1.4/jre/lib/sparc/libjava_g.so 0xfe7d0000 /home/minchit/jdk1.4/jre/lib/sparc/libzip_g.so 0xfd7d0000 /usr/lib/locale/ar/ar.so.2 0xfc190000 /home/minchit/jdk1.4/jre/lib/sparc/libawt_g.so 0xf3900000 /home/minchit/jdk1.4/jre/lib/sparc/motif21/libmawt_g.so 0xf3800000 /home/minchit/jdk1.4/bin/../jre/lib/sparc/libmlib_image_g.so 0xf3580000 /usr/dt/lib/libXm.so.4 0xf9c90000 /usr/openwin/lib/libXt.so.4 0xfc040000 /usr/openwin/lib/libXext.so.0 0xfc020000 /usr/openwin/lib/libXtst.so.1 0xf9fd0000 /usr/openwin/lib/libXmu.so.4 0xf3480000 /usr/openwin/lib/libX11.so.4 0xf9fb0000 /usr/openwin/lib/libSM.so.6 0xf9ed0000 /usr/openwin/lib/libICE.so.6 0xf3300000 /home/minchit/jdk1.4/jre/lib/sparc/libfontmanager_g.so 0xf9eb0000 /usr/openwin/lib/locale/common/xlibi18n.so.2 0xf9e90000 /usr/openwin/lib/locale/common/xomLTRTTB.so.2 0xf9de0000 /usr/lib//liblayout.so 0xf9dc0000 /usr/lib/locale/ar/LO_LTYPE/ar.layout.so.1 0xf9c20000 /usr/lib/libC.so.5 0xf3bc0000 /usr/openwin/lib/locale/common/ximlocal.so.2 0xf3ba0000 /home/minchit/jdk1.4/bin/../jre/lib/sparc/libsunwjdga_g.so 0xf3ad0000 /usr/openwin/lib/libdga.so.1 Local Time = Tue Feb 20 13:23:39 2001 Elapsed Time = 176 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4beta-B52-debug interpreted mode) # # An error report file has been saved as hs_err_pid28923.log. # Please refer to the file for further information. # Dumping core.... Abort (core dumped) minchi.tien@eng 2001-02-20 xueming.shen@Eng 2001-03-19 (1)#4426961 has been filed for the crash problem (because crash is not limitted to ar locale) (2)#4427483 has been filed for the display problem in JTextField (squarebox also appears in iw locale) (3)close this one as a duplicate
11-06-2004