favicon-extension broken by invalid character in python source

Bug #81262 reported by Christof Krüger
2
Affects Status Importance Assigned to Milestone
epiphany-extensions (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: epiphany-extensions

When starting epiphany-browser with the favicon-extension the extension does not load with the following error message on the console:

----------
  File "/usr/lib/epiphany/2.17/extensions/favicon.py", line 3
SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/epiphany/2.17/extensions/favicon.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

** (epiphany:23249): WARNING **: Could not initialize Python module 'favicon'
----------

It's the copyright character in the GPL note at the beginning of the file that is causing this error.
The solution is trivial: either replace the copyright-character by "(c)" or add the line

# -*- coding: utf-8 -*-

right after the shebang.

Revision history for this message
Sebastien Bacher (seb128) wrote :

That upload fixes the bug:

 epiphany-extensions (2.17.4-0ubuntu2) feisty; urgency=low
 .
   * debian/patches/01_from_svn_fix_favicon_encoding.patch:
     - patch from SVN, specify utf-8 encoding for favicon (Ubuntu: #81262)

Changed in epiphany-extensions:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.