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





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