[PyQt] pyrcc4, windows and locales

Phil Thompson phil at riverbankcomputing.com
Sun Aug 12 12:18:32 BST 2012


On Tue, 7 Aug 2012 12:56:54 -0400, Virgil Dupras <hsoft at hardcoded.net>
wrote:
> Hi,
> 
> This morning, I've stumbled upon what I think is a bug in pyrcc4. When I
> run it on a windows machine with a french locale, the timestamp in the
> resulting file's comment will contain an accented character (August in
> french is "Août") and that accented character will be in the wrong
> encoding. Python 3.2.3 doesn't complain when I run the app "straight",
but
> when I run cx_freeze on it, I get an UnicodeDecodeError and I can't
> continue.
> 
> I've worked around the problem by post-processing the resource file and
> stripping all comments.

Hopefully fixed in the current snapshot. If not then send me a copy of the
generated .py file.

Phil


More information about the PyQt mailing list