The following patch also fixes the bug.  It seems the split is
corrupting the encoding name.

$ diff -u /usr/lib/straw/straw/utils.py.orig /usr/lib/straw/straw/utils.py
--- /usr/lib/straw/straw/utils.py.orig  2006-12-15 20:36:58.000000000 -0500
+++ /usr/lib/straw/straw/utils.py       2006-12-15 20:37:28.000000000 -0500
@@ -91,8 +91,6 @@
        format = get_date_format()
    if encoding is None:
        encoding = get_locale_encoding()
-    if encoding.find('.') > 0:
-        encoding = encoding.split('.')[1] # get the encoding
    timestr = time.strftime(format, time.localtime(calendar.timegm(date)))
    return unicode(timestr, encoding)


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to