[PyQt] pylupdate patch for UTF-8 support

Phil Thompson phil at riverbankcomputing.co.uk
Sat Jun 30 15:58:01 BST 2007


On Tuesday 26 June 2007 5:42 pm, Giovanni Bajo wrote:
> Hi,
>
> 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?

> Also, I noted that pylupdate diverged from Trolltech's lupdate by a fair
> amount. Are there plans to resync it?

Not from me.

Phil


More information about the PyQt mailing list