[PyQt] pylupdate patch for UTF-8 support

Giovanni Bajo rasky at develer.com
Sun Jul 1 11:34:14 BST 2007


On Sat, 30 Jun 2007 15:58:01 +0100, Phil Thompson
<phil at riverbankcomputing.co.uk> wrote:

>> this patch is needed for me to be able to correctly run pylupdate over
>> Python UTF-8 source code, containing UTF-8 literal strings.
>>
>> The code uses self.tr() instead of self.trUtf8() and changes the
>> defaultCodecForTr to UTF-8 at startup. This is Trolltech's recommended
>> way to avoid using trUtf8 explicitly all over the code.
> 
> Then why doesn't lupdate do the same thing?

It does right now. It didn't as of the version pylupdate is based on.
 
>> Also, I noted that pylupdate diverged from Trolltech's lupdate by a fair
>> amount. Are there plans to resync it? 
> 
> Not from me.

What version of lupdate is pylupdate based upon? I can look into a 3-way
merge, but it's impossible without the baseline version.
-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com



More information about the PyQt mailing list