#15774: UnicodeDecodeError with makemessages
----------------------+-------------------------------------
 Reporter:  deschler  |         Owner:  nobody
     Type:  Bug       |        Status:  new
Milestone:            |     Component:  Internationalization
  Version:  1.3       |      Severity:  Normal
 Keywords:            |  Triage Stage:  Unreviewed
Has patch:  0         |
----------------------+-------------------------------------
 Running makemessages in the project folder throws a UnicodeDecodeError
 here with django-1.3. Everything works fine with django-1.2.

 {{{
 $ ./manage.py makemessages -l de
 processing language de
 Traceback (most recent call last):
   File "./manage.py", line 11, in <module>
     execute_manager(settings)
   File "/path/to/django/core/management/__init__.py", line 438, in
 execute_manager
     utility.execute()
   File "/path/to/django/core/management/__init__.py", line 379, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "/path/to/django/core/management/base.py", line 191, in
 run_from_argv
     self.execute(*args, **options.__dict__)
   File "/path/to/django/core/management/base.py", line 220, in execute
     output = self.handle(*args, **options)
   File "/path/to/django/core/management/base.py", line 351, in handle
     return self.handle_noargs(**options)
   File "/path/to/django/core/management/commands/makemessages.py", line
 365, in handle_noargs
     make_messages(locale, domain, verbosity, process_all, extensions,
 symlinks, ignore_patterns, no_wrap, no_obsolete)
   File "/path/to/django/core/management/commands/makemessages.py", line
 233, in make_messages
     f.write(templatize(src, orig_file[2:]))
   File "/path/to/django/utils/translation/__init__.py", line 127, in
 templatize
     return _trans.templatize(src, origin)
   File "/path/to/django/utils/translation/trans_real.py", line 450, in
 templatize
     content = u''.join(comment)
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 284:
 ordinal not in range(128)
 }}}

 Is this in any way related to the changes made in project level
 translation handling mentioned in the 1.3 release notes? I'm not sure if i
 understand them correctly, does it mean that project level should be
 avoided in favour of app level translations in general? Adding the project
 locale folder to LOCALE_PATHS doesn't make a difference by the way, same
 UnicodeDecodeError.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15774>
Django <http://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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to