#18459: makemessages - problem with Unicode
-------------------------------------+-------------------------------------
     Reporter:  julio@…              |      Owner:  nobody
         Type:  Bug                  |     Status:  new
    Component:                       |    Version:  master
  Internationalization               |   Keywords:  i18n, makemessages,
     Severity:  Normal               |  unicode
 Triage Stage:  Unreviewed           |  Has patch:  0
Easy pickings:  0                    |      UI/UX:  0
-------------------------------------+-------------------------------------
 Commit 4a10308 from 2012-06-07 broke makemessages:

 == git checkout 4a10308 ==

 {{{
 $ django-admin.py makemessages --all
 Traceback (most recent call last):
   File "/usr/bin/django-admin.py", line 7, in <module>
     execfile(__file__)
   File "/django/django/bin/django-admin.py", line 5, in <module>
     management.execute_from_command_line()
   File "/django/django/core/management/__init__.py", line 442, in
 execute_from_command_line
     utility.execute()
   File "/django/django/core/management/__init__.py", line 348, in execute
     version=get_version(),
   File "/django/django/__init__.py", line 7, in get_version
     return get_version(*args, **kwargs)
   File "/django/django/utils/version.py", line 25, in get_version
     git_changeset = get_git_changeset()
   File "/django/django/utils/version.py", line 46, in get_git_changeset
     timestamp = git_show.communicate()[0].partition('\n')[0]
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position
 14535: ordinal not in range(128)
 }}}

 == git checkout master (1a10a06) ==
 {{{
 $ django-admin.py makemessages --all
 processing language pt_BR
 UnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in position
 715460: invalid start byte
 }}}

 I've tried **`from __future__ import unicode_literals`** but it didn't
 work.

 I'm running Python 2.7.3 on Arch Linux x86_64

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18459>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to