bugStraw, desktop news aggregator - Bugs: bug #8728, Unknown Encoding in Straw 0.23

 
 

bug #8728: Unknown Encoding in Straw 0.23

Submitted by:  Nick Hudson <nickhudson>
Submitted on:  Wed 28 Apr 2004 08:42:21 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 25 Jun 2004 05:02:22 AM UTC, comment #2:

Thanks for the patch. Fixed. Will be in 0.24.

Jan Alonzo <jmalonzo>
Project Administrator
Fri 21 May 2004 06:16:36 PM UTC, comment #1:

This patch solves this bug. The way to get the encoding was not the best one. locale.getpreferredencoding() is a shorter, better solution.

As a bonus, the format string for dates is now '%c' : "%c The preferred date and time representation for the current locale."

Lucas Nussbaum <lnu>
Project Member
Wed 28 Apr 2004 08:42:21 PM UTC, original submission:

I am getting the following error while using version 0.23:

Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 336, in item_selection_changed
self.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 363, in display_item
straw.main.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/Main.py", line 187, in display_item
straw.main_window.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 1416, in display_item
self._item_view.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 101, in display_item
html = (
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 145, in htmlify_item
self._date_format, self._encoding)
File "/usr/lib/python2.3/site-packages/straw/utils.py", line 144, in format_date
return unicode(timestr, encoding)
LookupError: unknown encoding: en_US.ISO8859-1
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 336, in item_selection_changed
self.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 363, in display_item
straw.main.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/Main.py", line 187, in display_item
straw.main_window.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 1416, in display_item
self._item_view.display_item(item)
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 101, in display_item
html = (
File "/usr/lib/python2.3/site-packages/straw/MainWindow.py", line 145, in htmlify_item
self._date_format, self._encoding)
File "/usr/lib/python2.3/site-packages/straw/utils.py", line 144, in format_date
return unicode(timestr, encoding)
LookupError: unknown encoding: en_US.ISO8859-1

This does not happen in 0.22.1. Also with this error I cannt view any oh the rss feeds I get.

Thanks

Nick

Nick Hudson <nickhudson>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1338:  straw+encodingproblems.diff added by lnu (1KiB - text/x-patch - the patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 25 Jun 2004 05:02:22 AM UTCjmalonzoStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Fri 21 May 2004 06:16:36 PM UTClnuAttached File-=>Added straw+encodingproblems.diff, #1330

Back to the top


Powered by Savane 3.1-cleanup1