gnue-dev
[Top][All Lists]
Advanced

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

Re: [GNUe-dev] unicode error


From: chafar
Subject: Re: [GNUe-dev] unicode error
Date: Tue, 1 Jun 2004 23:21:07 +0200
User-agent: Mutt/1.3.28i

El mar, jun 01, a las 10:42:58 Reinhard Müller escribía:
> 
> ...
> 
> The problem that you would have to know which variables hold StringType
> values, and which variables hold UnicodeType values, to fix it properly.
> 
> _("foo %s") % bar  -> breaks if "bar" is UnicodeType
> u_("foo %s") % bar -> breaks if "bar" is StringType containing non-ASCII
> 
> The only way of really properly fixing it is to go through *all* of the
> code and change everything to use Unicode.
> 
> We already did this for appserver and for parts of common. But you need
> knowledge of the underlying code to do that. So it will depend on the
> forms/reports/etc. developers when this stuff will be fixed.
> 
> Meanwhile, we can't do much but fix those occurances of problems we
> accidentally find.
> 
Here is another:

DB000:   File
"/var/home/chafar/gnue/gnue-common/.cvsdevelbase/gnue/common/logic/GTrigger.py",
line 276, in associateTrigger
DB000:     GDebug.printMesg(0, "%s %s" % (_("Invalid trigger "),key))
DB000: UnicodeError: ASCII decoding error: ordinal not in range(128)

-- 
José Esteban
Granada - Spain
http://alcances.net




reply via email to

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