-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.0
-
sparc
-
solaris_8
All Thai glyphs displayed as empty boxes on Solaris 8.
To reproduce:
0. Login on a Solaris 8 machine, any locale
1. Install JDK1.4 b26 (happened in b24 also)
3. Set Java path to correct path
4. Compile and run the enclosed test
(Notice also, if set locale to th_TH, the fontpath is not set correctly, it'll give the following message:
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
Once set correctly as specified in /usr/openwin/lib/locale/th_TH/OWfontpat, the messages are gone)
5. Notice all the Thai glyphs show as rectangle boxes
6. Do the same procedure on a Solaris 7 machine, all the glyphs show as Thai glyphs
=======================================
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
public class jComboPanelThai extends JApplet
{
public void init()
{
EditableComboBox combbox = new EditableComboBox();
getContentPane().add(combbox);
getContentPane().setSize(10,10);
}
public static void main(String[] argv)
{
JFrame frame = new JFrame("Thai strings");
frame.setContentPane(new EditableComboBox());
frame.pack();
frame.addWindowListener( new WindowAdapter()
{
public void windowClosing( WindowEvent e)
{
System.exit(0);
}
});
frame.setVisible(true);
}
}
class EditableComboBox extends JPanel
{
String title[] =
{
"\u0e43\u0e04\u0e23", /* who */
"\u0E33\u0E19\u0E34\u0E33\u0E19\u0E34\u0E49\u0E33 ",
"\u0E19\u0E4D\u0E33\u0E19\u0E49\u0E33\u0E33 ",
"Abc\u0E2c\u0E35\u0E48\u0E2c\u0E48 ",
"\u0E1b\u0E35\u0E48\u0E1b\u0E48 ",
"\u0E19\u0E34\u0E4D\u0E49",
"\u0E1B\u0E49\u0E33"
};
public EditableComboBox()
{
super(true);
setLayout(new BorderLayout());
JComboBox bookCombo = new JComboBox(title);
bookCombo.setFont(new Font("Lucida Sans Regular", Font.PLAIN, 36));
bookCombo.setSize(20,200);
add(bookCombo, BorderLayout.CENTER);
}
}
To reproduce:
0. Login on a Solaris 8 machine, any locale
1. Install JDK1.4 b26 (happened in b24 also)
3. Set Java path to correct path
4. Compile and run the enclosed test
(Notice also, if set locale to th_TH, the fontpath is not set correctly, it'll give the following message:
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion
Once set correctly as specified in /usr/openwin/lib/locale/th_TH/OWfontpat, the messages are gone)
5. Notice all the Thai glyphs show as rectangle boxes
6. Do the same procedure on a Solaris 7 machine, all the glyphs show as Thai glyphs
=======================================
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
public class jComboPanelThai extends JApplet
{
public void init()
{
EditableComboBox combbox = new EditableComboBox();
getContentPane().add(combbox);
getContentPane().setSize(10,10);
}
public static void main(String[] argv)
{
JFrame frame = new JFrame("Thai strings");
frame.setContentPane(new EditableComboBox());
frame.pack();
frame.addWindowListener( new WindowAdapter()
{
public void windowClosing( WindowEvent e)
{
System.exit(0);
}
});
frame.setVisible(true);
}
}
class EditableComboBox extends JPanel
{
String title[] =
{
"\u0e43\u0e04\u0e23", /* who */
"\u0E33\u0E19\u0E34\u0E33\u0E19\u0E34\u0E49\u0E33 ",
"\u0E19\u0E4D\u0E33\u0E19\u0E49\u0E33\u0E33 ",
"Abc\u0E2c\u0E35\u0E48\u0E2c\u0E48 ",
"\u0E1b\u0E35\u0E48\u0E1b\u0E48 ",
"\u0E19\u0E34\u0E4D\u0E49",
"\u0E1B\u0E49\u0E33"
};
public EditableComboBox()
{
super(true);
setLayout(new BorderLayout());
JComboBox bookCombo = new JComboBox(title);
bookCombo.setFont(new Font("Lucida Sans Regular", Font.PLAIN, 36));
bookCombo.setSize(20,200);
add(bookCombo, BorderLayout.CENTER);
}
}
- duplicates
-
JDK-4360160 All Thai glyphs displayed as empty boxes on Solaris 8
- Closed