Bug 250248 - msghack crashes due to Unicode in header
msghack crashes due to Unicode in header
Product: Fedora
Classification: Fedora
Component: gettext (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Jens Petersen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-07-31 08:40 EDT by Dwayne Bailey
Modified: 2007-11-30 17:12 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-01 03:31:05 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix for encoding (261 bytes, patch)
2007-07-31 08:40 EDT, Dwayne Bailey
no flags Details | Diff

  None (edit)
Description Dwayne Bailey 2007-07-31 08:40:29 EDT
Description of problem:
msghack crashes

Version-Release number of selected component (if applicable):

How reproducible:
msghack --help
Actual results:
  File "/usr/bin/msghack", line 3
SyntaxError: Non-ASCII character '\xf8' in file /usr/bin/msghack on line 3, but
no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Expected results:
Get the help or otherwise function correctly

Additional info:
The problem is simple, there is a Unicode character in the header crediting one
of the coders which crashes the tool in newer versions of Python.

I'm not sure if msghack is used much.  I use it mostly to empty PO files and
create POT file.  An alternate might be to extend the Translate Toolkit to do
the functions provided by msghack.
Comment 1 Dwayne Bailey 2007-07-31 08:40:29 EDT
Created attachment 160310 [details]
Fix for encoding
Comment 2 Jens Petersen 2007-08-01 03:29:56 EDT
Thanks for the fix!  Fixing first in Fedora devel gettext-0.16.1-9.fc8.
May backport it later to F7.

Note You need to log in before you can comment on or make changes to this bug.