FW: GtkEntry needs to be fixed in order to work correctly with fonts (not fontsets) under non-latin1 single-byte locale (fwd)

simos at pc96.ma.rhbnc.ac.uk simos at pc96.ma.rhbnc.ac.uk
Wed Mar 14 16:56:16 EET 2001


Ίσως το παρακάτω να σχετίζετε με το πρόβλημα στα ελληνικά στο gtk+.

---------- Forwarded message ----------
Date: Tue, 13 Mar 2001 23:26:30 +0400 (SAMT)
From: Vlad Harchev <hvv at hippo.ru>
To: gtk-devel-list at gnome.org
Cc: gnome-i18n at gnome.org
Subject: GtkEntry needs to be fixed in order to work correctly with fonts
    (not fontsets) under non-latin1 single-byte locale

 Hi,

 The GtkEntry recent version of gtk, 1.2.9, still has bugs of not working
correctly with fonts (not fontsets) under non-latin1 single-byte locale -
since GtkEntry uses *_wc family of functions independant of the use_wchar -
i.e. _wc functions are used for multibyte text too!
 This bug leads to displaying completely wrong glyphs in GtkEntry!

 The gross hack to fix this problem is
change
	entry->use_wchar = FALSE;
to
	entry->use_wchar = TRUE;
in gtk_entry_init. It works just fine, the only issues it has is decreasing
performance (but it's negligible I think).

 Also I can prepare a patch for GtkEntry that fixes all problems in a clean
way (i.e. calling non-wc versions of functions if entry->use_wchar  is FALSE
and *_wc version of functions when entry->use_wchar is TRUE). Of course it
will complicate code somewhat.. Will this patch be accepted and included in
1.2.10 (if it has no technical flaws) or hackish solution will be preferred?

 Best regards,
  -Vlad


_______________________________________________
gnome-i18n mailing list
gnome-i18n at gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-i18n




More information about the I18ngr mailing list