gnue-dev
[Top][All Lists]
Advanced

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

Re: [GNUe-dev] unicode error


From: Reinhard Mueller
Subject: Re: [GNUe-dev] unicode error
Date: Mon, 31 May 2004 22:42:01 +0200

Am Mon, den 31.05.2004 schrieb Reinhard Mueller um 22:35:
> This comes from improperly handeled exceptions. You may regard this as a
> bug in gnue-forms.
> 
> It can be fixed by deriving exceptions from gException instead of
> Exception. I'll fix it for this one.

In fact, this specific case was not an exception but a translated string
with parameters:

_("foo %s") % value

breaks, if "value" is of unicode type and contains non-ascii characters.

The solution is to change it into

u_("foo %s") % value

It is fixed in SVN.

Thanks,
-- 
Reinhard Mueller
GNU Enterprise project
http://www.gnue.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No army can stop an idea whose time has come.
        -- Victor Hugo, 1802-1885

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]