Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 84593
Summary: | translated messages are broken on UTF-8 locale | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Akira TAGOH <tagoh> | ||||||||||||||
Component: | gtk+ | Assignee: | Owen Taylor <otaylor> | ||||||||||||||
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||||
Priority: | medium | ||||||||||||||||
Version: | rawhide | CC: | eng-i18n-bugs, mitr, notting, twanger, twaugh, ynakai | ||||||||||||||
Target Milestone: | --- | ||||||||||||||||
Target Release: | --- | ||||||||||||||||
Hardware: | i386 | ||||||||||||||||
OS: | Linux | ||||||||||||||||
Whiteboard: | |||||||||||||||||
Fixed In Version: | 1.2.10-28.1 | Doc Type: | Bug Fix | ||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||
Clone Of: | Environment: | ||||||||||||||||
Last Closed: | 2003-10-27 21:11:28 UTC | Type: | --- | ||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||
Embargoed: | |||||||||||||||||
Bug Depends On: | 101377 | ||||||||||||||||
Bug Blocks: | 84594, 84595, 84599, 84600 | ||||||||||||||||
Attachments: |
|
Description
Akira TAGOH
2003-02-19 12:51:53 UTC
Created attachment 90181 [details]
patch
Created attachment 90184 [details]
patch (fix typo)
But, the default encoding for gettext() is the encoding of the locale. + gchar *encoding = nl_langinfo (CODESET); + + if (encoding) + bind_textdomain_codeset ("gtk+", encoding); Should not be necessary. I don't think think this is right. I knew that. but ... Hmm, I couldn't reproduce now. I was confused something. I think there are still gtkrc issue at least. Bug#83899 is what I consider this. looks like our iso10646-1 fonts doesn't support some glyphs for KOI8-R and KOI8-U. gtkrc.utf8 is used in preference to gtkrc.ru. To quote from the relevant part of the patch: * We normalize the charset into a standard form, * which has all '-' and '_' characters removed, * and is lowercase. + * + * the search is done in that order: + * gtkrc.ll_cc.lowercasecodeset + * gtkrc.ll_cc.normalizedcodeset + * gtkrc.ll.lowercasecodeset + * gtkrc.ll.normalizedcodeset + * gtkrc.lowercasecodeset + * gtkrc.normalizedcodeset + * gtkrc.ll_cc + * gtkrc.ll To handle ja_JP.UTF-8, either a gtkrc.ja.utf8 would have to be added, or gtkrc.utf8 extended. (Not intending to attempt to change anything here for GinGin) Um, I mean -*-helvetica-medium-r-normal--*-120-*-*-p-*-*-* may be not enough for ru_RU.UTF-8 (and maybe uk_UA.UTF-8). helvetica font has koi8-* encoding. but iso-10646-1 has no glyphs for koi8-* somehow. I have tested around gtk+1 app in utf8 and look like adding file for different utf8 (ie. gtkrc.ko.utf8) would be a better idea. Extending gtkrc.utf8 seems cannot create the best looking for each locale. Any plan of doing so in Cambridge? What is the future of GTK+1 in Cambridge? *** Bug 85855 has been marked as a duplicate of this bug. *** *** Bug 83899 has been marked as a duplicate of this bug. *** Created attachment 93326 [details]
gtkrc for ja_JP.UTF-8
Created attachment 93327 [details]
gtkrc for ko_KR.UTF-8
Created attachment 93328 [details]
gtkrc for zh_CN.UTF-8
Created attachment 93329 [details]
gtkrc for zh_TW.UTF-8
Owen, comments on adding the gtkrc for <lang>.utf-8? *** Bug 107697 has been marked as a duplicate of this bug. *** Last time I investigated what was going on with problems with UTF-8 and GTK+-1, I found that there were significant problems with the font code in xfs and the X server that were making things that should have worked, not work. I have a patch for that, but I've never had the time to work on getting it upstream. I guess it wouldn't hurt to put in these .UTF-8 gtkrc files (and the one from 101224), but I have significant doubts about everything working well without fixing the X bugs. Added the RC files above to the RPM. Seems to work. Thanks! * Mon Oct 27 2003 Owen Taylor <otaylor> 1:1.2.10-28.1 - Cave like a cheap house of cards and add gdk-pixbuf dependency (#105613) - Add gtkrc.*.utf8 RC files for CJK (#84593) - Add a dependency on libgdk to libgtk (#106677) Confirmed fixed, thanks. :-) |