PyGettextPO is not able to handle Unicode strings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Carlos Perelló Marín |
Bug Description
I saw a problem with pygettextpo validation and thus I wrote a test to know if it was a problem with it or with Rosetta.
The test is:
def testUnicodeStri
"""Test that a translation with unicode chars is working."""
msg = gettextpo.
msg.
msg.se...
I saw a problem with pygettextpo validation and thus I wrote a test to know if it was a problem with it or with Rosetta.
The test is:
def testUnicodeStri
"""Test that a translation with unicode chars is working."""
msg = gettextpo.
msg.
msg.
And the test run output:
carlos@
.......E....
=======
ERROR: Test that a translation with unicode chars is working.
-------
Traceback (most recent call last):
File "./test_
msg.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 13: ordinal not in range(128)
-------
Ran 12 tests in 0.021s
FAILED (errors=1)
Changed in launchpad: | |
assignee: | nobody → carlos |
status: | New → PendingUpload |
Changed in launchpad: | |
status: | PendingUpload → Fixed |
visibility: | private → public |
I have a patch for this.
It's pending to be reviewed and merged into rocketfuel.
It's located at: /pygettextpo- -devel- -0--patch- 3
<email address hidden>