|
|
Choosing A Webhost: |
Re: glade localization woes: msg#00135gnome.gtk+.perl
Jan Hudec <bulb@xxxxxx> writes: > It seems that there is a bug in gettext. Perl has two types of > strings -- octet streams and unicode. It's a mess, sometimes. Read > the perlunicode manpage to find more about it. Now what really > should be done is forcing gettext to mark the string as unicode one > if it is one. > > > Is it anything I'm doing wrong, or is it a Perl Glade bug (which > > is what I'm inclined to believe)? > > No. It's a gettext bug. It returns unicode string, but does not mark > it as such. And all the glib-perl/gtk2-perl/gtk2-glade-perl stuff > honors that marks. gettext hasn't to tag a perl string as utf8 since it's not aware of perl internals and you cannot expect it from doing so. you need to call "some_module::bind_textdomain_codeset("mydomain", 'UTF8');" in order to get utf8 strings with this functions defined in a xs as: >==================================================> > char * > > bind_textdomain_codeset(domainname, codeset) > > char * domainname > > char * codeset > >==================================================> and then you've to tag strings as utf8 see N() implementation in common.pm from drakx installer and tools:
gtk-perl-list mailing list gtk-perl-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-perl-list
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: segfault ....., muppet |
|---|---|
| Next by Date: | Re: glade localization woes, Jan Hudec |
| Previous by Thread: | Re: glade localization woes, Jan Hudec |
| Next by Thread: | Re: glade localization woes, Jan Hudec |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |