#21269 closed Bug (fixed)
UnicodeDecodeError on makemessages -d djangojs
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.6-beta-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm getting an UnicodeDecodeError when running makemessages -d djangojs -l de
.
processing locale de Traceback (most recent call last): File "/home/eike/public_html/test/env2/bin/django-admin.py", line 5, in <module> management.execute_from_command_line() File "/home/eike/public_html/test/env2/lib/python2.7/site-packages/django/core/management/__init__.py", line 397, in execute_from_command_line utility.execute() File "/home/eike/public_html/test/env2/lib/python2.7/site-packages/django/core/management/__init__.py", line 390, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/eike/public_html/test/env2/lib/python2.7/site-packages/django/core/management/base.py", line 247, in run_from_argv stderr.write('%s: %s' % (e.__class__.__name__, e)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xd6' in position 47: ordinal not in range(128)
I'm using Python 2.7.5 and the latest beta. I tested this with Django 1.5 too and it works without any problems.
Change History (3)
comment:1 by , 11 years ago
Component: | Translations → Core (Management commands) |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I guess the issue is due to
CommandError
containing non-ascii content. I'll try to prepare a fix (probably adding moreunicode_literals
).