Closed Bug 567223 Opened 14 years ago Closed 14 years ago

Highcharts is breaking string extraction

Categories

(addons.mozilla.org Graveyard :: Localization, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: clouserw, Assigned: clouserw)

Details

./manage.py extract

Traceback (most recent call last):
  File "./manage.py", line 57, in <module>
    execute_manager(settings)
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/src/django/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/src/django/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/src/django/django/core/management/base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/src/django/django/core/management/base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/src/tower/tower/management/commands/extract.py", line 146, in handle
    catalog = create_pofile_from_babel(extracted)
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/src/tower/tower/management/commands/extract.py", line 105, in create_pofile_from_babel
    for filename, lineno, message, comments in extracted:
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/lib/python2.6/site-packages/babel/messages/extract.py", line 171, in extract_from_dir
    strip_comment_tags):
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/lib/python2.6/site-packages/babel/messages/extract.py", line 201, in extract_from_file
    strip_comment_tags))
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/lib/python2.6/site-packages/babel/messages/extract.py", line 275, in extract
    for lineno, funcname, messages, comments in results:
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/lib/python2.6/site-packages/babel/messages/extract.py", line 462, in extract_javascript
    for token in tokenize(fileobj.read().decode(encoding)):
  File "/home/clouserw/.dotfiles/.virtualenvs/zamboni/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 59-63: unsupported Unicode code range
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.