On Sat, Oct 16, 2004 at 09:17:59PM +0200, Isaac Clerencia wrote:
> Package: liblocale-gettext-perl
> Severity: important
> Version: 1.01-17
> 
> Perl strings have a flag to know if they're stored in UTF-8 or Latin1,
> but Locale::gettext doesn't sets up that flag when returning UTF-8 strings.

Locale::gettext supports Perl's UTF-8 strings since version 1.04
(January 2005). You need to use the new object based interface in
order to take advantage of it. The legacy interface, intended to be
a raw mapping to the libc functions of the same names, will not
support it (support for this depends on the bind_textdomain_codeset()
function which isn't available in every libc).

Under version 1.05, see if you get UTF-8 strings correctly if you do
this:

my $d = Locale::gettext->domain("my_program");
print $d->get("Welcome to my program"), "\n";

Please test this with your string concatenation use case. It should
work.

-Phil


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to