Run the attached ballot file using Meek STV and a display width of 100 characters (the default for the GUI version of the program); nothing in particular should happen. Now run it again with a display width of 80 characters, and the program crashes. Changing the name of the candidate "Mana ಠдಠ" to "Mana" works around the issue.
Here's the traceback:
Traceback (most recent call last):
File "/usr/share/openstv/openstv/OpenSTV.py", line 396, in OnRunElection
election.generateTextOutput(self.notebook.GetPage(page))
File "/usr/share/openstv/openstv/OpenSTV.py", line 137, in generateTextOutput
self.generateReport(TextReport(self.e, self.dispWidth, outputFile=output))
File "/usr/share/openstv/openstv/OpenSTV.py", line 134, in generateReport
reportObj.generateReport()
File "/usr/share/openstv/openstv/plugins.py", line 201, in generateReport
self.generateReportIterative()
File "/usr/share/openstv/openstv/ReportPlugins/TextReport.py", line 355, in generateReportIterative
out(line + "\n")
File "/usr/share/openstv/openstv/plugins.py", line 194, in output
print >> self.outputFile, output,
File "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_controls.py", line 1982, in write
return _controls_.TextCtrl_write(*args, **kwargs)
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe0 in position 25: invalid continuation byte
The page I link to has more technical details such as version details, environment variables and more.
> Run the attached ballot file using Meek STV and a display width of 100 > characters (the default for the GUI version of the program); nothing in > particular should happen. Now run it again with a display width of 80 > characters, and the program crashes. Changing the name of the candidate > "Mana ಠдಠ" to "Mana" works around the issue.
> Here's the traceback:
> Traceback (most recent call last): > File "/usr/share/openstv/openstv/OpenSTV.py", line 396, in OnRunElection > election.generateTextOutput(self.notebook.GetPage(page)) > File "/usr/share/openstv/openstv/OpenSTV.py", line 137, in > generateTextOutput > self.generateReport(TextReport(self.e, self.dispWidth, > outputFile=output)) > File "/usr/share/openstv/openstv/OpenSTV.py", line 134, in > generateReport > reportObj.generateReport() > File "/usr/share/openstv/openstv/plugins.py", line 201, in > generateReport > self.generateReportIterative() > File "/usr/share/openstv/openstv/ReportPlugins/TextReport.py", line 355, > in generateReportIterative > out(line + "\n") > File "/usr/share/openstv/openstv/plugins.py", line 194, in output > print >> self.outputFile, output, > File > "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_controls.py", line > 1982, in write > return _controls_.TextCtrl_write(*args, **kwargs) > File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode > return codecs.utf_8_decode(input, errors, True) > UnicodeDecodeError: 'utf8' codec can't decode byte 0xe0 in position 25: > invalid continuation byte
> The page I link to has more technical details such as version details, > environment variables and more.
> -- > You received this message because you are subscribed to the OpenSTV > Questions group. > To unsubscribe from this group, send email to > openstv+unsubscribe@googlegroups.com