A bug report: Pango cannnot handle some CJK character sets



Operating System:
	Redhat Linux 6.2J on intel PC
	Solaris8
Language:
	Japanese
Problem Summary:
	JISX0201.1976, JISX0212.1990, BIG5, CNS11643 are not supported.
	
Which feature or component were you using?
	Text output in gtk+ and pango
	
How serious is the problem?
	Critical, as this is a regression from gtk+ 1.2.
	
Does the problem happen consistently?
	Yes, always
	
What are the steps to reproduce the problem?

	Set UTF-8 text for JISX0201, JISX0212.1990 character set range
	to gtk+ widgets, then these text won't display at all.

 Example to demonstrate the problem:

 Change gtk+/entry/entry.c as follows and run. Only "hello world" is
 visible.
 
 +++ Makefile    2000/12/12 23:57:34
@@ -2,7 +2,7 @@
 CC = gcc
 
 entry: entry.c 
-  $(CC) `gtk-config --cflags`  entry.c -o entry `gtk-config --libs`
+  $(CC) `gtk-config-2.0 --cflags`  entry.c -o entry `gtk-config-2.0 --libs`
 
 clean: 
   rm -f *.o entry
   
+++ entry.c     2000/12/12 23:57:34
@@ -34,6 +34,7 @@
     GtkWidget *button;
     GtkWidget *check;
 
+    gtk_set_locale();
     gtk_init (&argc, &argv);
 
     /* create a new window */
@@ -53,6 +54,24 @@
               entry);
     gtk_entry_set_text (GTK_ENTRY (entry), "hello");
     gtk_entry_append_text (GTK_ENTRY (entry), " world");
+    {
+      /* jisx0212 */
+      gchar temp[4];
+      temp[0] = 0xe4;
+      temp[1] = 0xb8;
+      temp[2] = 0x82;
+      temp[3] = 0;
+      gtk_entry_append_text (GTK_ENTRY (entry), temp);
+    }
+    {
+      /* jisx0201 */
+      gchar temp[4];
+      temp[0] = 0xef;
+      temp[1] = 0xbd;
+      temp[2] = 0xb1;
+      temp[3] = 0;
+      gtk_entry_append_text (GTK_ENTRY (entry), temp);
+    }
     gtk_entry_select_region (GTK_ENTRY (entry),

	
	





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]