Merge lp:~trb143/openlp/servicing2 into lp:openlp

Proposed by Tim Bentley
Status: Merged
Merged at revision: not available
Proposed branch: lp:~trb143/openlp/servicing2
Merge into: lp:openlp
Diff against target: None lines
To merge this branch: bzr merge lp:~trb143/openlp/servicing2
Reviewer Review Type Date Requested Status
Raoul Snyman Approve
Review via email: mp+7730@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Tim Bentley (trb143) wrote :

Corrects the default unicode handing in the app.
Eric4 uses this which explains why I did not see the errors last week.
They appear when outside Eric until this line is included.

Revision history for this message
Raoul Snyman (raoul-snyman) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp.pyw'
2--- openlp.pyw 2009-06-20 10:44:12 +0000
3+++ openlp.pyw 2009-06-21 07:30:15 +0000
4@@ -38,6 +38,11 @@
5 log.info(u'Application Loaded')
6
7 def run(self):
8+ #set the default string encoding
9+ try:
10+ sys.setappdefaultencoding(u'utf-8')
11+ except:
12+ pass
13 #provide a listener for widgets to reqest a screen update.
14 QtCore.QObject.connect(Receiver.get_receiver(),
15 QtCore.SIGNAL(u'openlpprocessevents'), self.processEvents)