Last modified: 2014-09-18 07:32:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72976, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70976 - codec encoding problems on win32
codec encoding problems on win32
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All Windows XP
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwbpy3
  Show dependency treegraph
 
Reported: 2014-09-17 23:40 UTC by John Mark Vandenberg
Modified: 2014-09-18 07:32 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description John Mark Vandenberg 2014-09-17 23:40:02 UTC
When running tests on windows, without setting config.transliteration_target in user_config, the following encoding problem appear.

======================================================================
ERROR: testReprUnicode (tests.page_tests.TestPageObject)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\pywiki\core\tests\page_tests.py", line 451, in testReprUnicode
    s = repr(page)
  File "c:\pywiki\core\pywikibot\page.py", line 253, in __repr__
    self.title().encode(config.console_encoding))
  File "c:\Python34\lib\encodings\cp850.py", line 12, in encode
    return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character '\u014c' in position 0: character maps to <undefined>

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links