← Back to team overview

spv-dev team mailing list archive

[Branch ~bouf10/slidepresenterview/refactor-pres-design] Rev 65: Try to fix the problem with Unicode comparison using NFC unicode normalization. (2)

 

------------------------------------------------------------
revno: 65
committer: F.-A. Bourbonnais <bouf10pub@xxxxxxxxxxx>
branch nick: refactor-pres-design
timestamp: Sun 2010-05-16 23:50:07 -0400
message:
  Try to fix the problem with Unicode comparison using NFC unicode normalization. (2)
modified:
  slidepresenterview/utils/uri.py


--
lp:~bouf10/slidepresenterview/refactor-pres-design
https://code.launchpad.net/~bouf10/slidepresenterview/refactor-pres-design

Your team SlidePresenterView Development Team is subscribed to branch lp:~bouf10/slidepresenterview/refactor-pres-design.
To unsubscribe from this branch go to https://code.launchpad.net/~bouf10/slidepresenterview/refactor-pres-design/+edit-subscription
=== modified file 'slidepresenterview/utils/uri.py'
--- slidepresenterview/utils/uri.py	2010-05-17 03:38:20 +0000
+++ slidepresenterview/utils/uri.py	2010-05-17 03:50:07 +0000
@@ -118,12 +118,13 @@
         import unicodedata, sys
         
         if not isinstance(other_uri.uri, unicode):
-            other_uri_unicode = unicode(other_uri.uri, sys.stdout.encoding)
+            other_uri_unicode = unicode(other_uri.uri, 
+                                        sys.getdefaultencoding())
         else:
             other_uri_unicode = other_uri.uri
             
         if not isinstance(self.uri, unicode):
-            uri_unicode = unicode(self.uri, sys.stdout.encoding)
+            uri_unicode = unicode(self.uri, sys.getdefaultencoding())
         else:
             uri_unicode = self.uri