Revision: 4983 Author: russblau Date: 2008-02-06 14:09:28 +0000 (Wed, 06 Feb 2008)
Log Message: ----------- Fix critical bug #1887631
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-02-05 18:13:45 UTC (rev 4982) +++ trunk/pywikipedia/wikipedia.py 2008-02-06 14:09:28 UTC (rev 4983) @@ -444,6 +444,7 @@ """ title = self._title if savetitle: # Ensure there's no wiki syntax in the title + # FIXME: this makes no sense if title.find("''") > -1: try: title = urllib.quote(title).replace('%20',' ') @@ -5208,6 +5209,8 @@ # Central/Eastern European Windows versions give parameters encoded # as windows-1250 even though the console encoding is cp852. return unicode(arg, 'windows-1250') + else: + return unicode(arg, config.console_encoding) else: # Linux uses the same encoding for both. # I don't know how non-Western Windows versions behave.