Page 1 of 1

[FIXED] Help -> About EventGost... causes UnicodeDecodeError

Posted: Fri Dec 05, 2008 3:08 pm
by Pako
Build 1487

Code: Select all

16:02:10   Traceback (most recent call last):
16:02:10     File "d:\Programs\E\EventGhost\eg\Utils.py", line 224, in Wrapper
16:02:10       return gr.switch(*args, **kwargs)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\MainFrame\__init__.py", line 918, in OnCmdAbout
16:02:10       self.aboutDialog = eg.AboutDialog.Create(self)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\Dialog.py", line 59, in Create
16:02:10       self.__gr.switch(*args, **kwargs)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\AboutDialog.py", line 369, in Process
16:02:10       notebook.AddPage(SystemInfoPanel(notebook), Text.tabSystemInfo)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\AboutDialog.py", line 285, in __init__
16:02:10       HtmlPanel.__init__(self, parent, "<table>%s</table>" % sysInfoTemplate)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\AboutDialog.py", line 208, in __init__
16:02:10       htmlWindow.SetPage(html)
16:02:10     File "d:\Programs\E\EventGhost\eg\Classes\HtmlWindow.py", line 52, in SetPage
16:02:10       html
16:02:10   UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 156: ordinal not in range(128)
Pako

Re: Help -> About EventGost... causes UnicodeDecodeError

Posted: Fri Dec 05, 2008 3:30 pm
by Bitmonster
How do you write the current weekday and month in Czech?

Try to change around line 266 in eg/Classes/AboutDialog.py from:

Code: Select all

        buildTime = time.strftime(
            Text.CreationDate, 
            time.gmtime(eg.Version.buildTime)
        )
to:

Code: Select all

        buildTime = time.strftime(
            Text.CreationDate, 
            time.gmtime(eg.Version.buildTime)
        ).decode(eg.systemEncoding)

Re: Help -> About EventGost... causes UnicodeDecodeError

Posted: Fri Dec 05, 2008 3:57 pm
by Pako
Current weekday in Czech language is named "Pátek" and the month is called "Prosinec".
After modifying, the code already not causes error !

Pako

Re: Help -> About EventGost... causes UnicodeDecodeError

Posted: Thu Jan 01, 2009 9:07 pm
by Bartman
Has the fix been submitted to the svn?

Re: Help -> About EventGost... causes UnicodeDecodeError

Posted: Fri Jan 02, 2009 9:01 am
by Pako
Bartman wrote:Has the fix been submitted to the svn?
Yes, I saw, that in the SVN rep. is already prepared corrected version.
Pako