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

 
 

bug #8728: Unknown Encoding in Straw 0.23

Submitter:  Nick Hudson <nickhudson>
Submitted:  Wed 28 Apr 2004 08:42:21 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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

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

Jan Alonzo <jmalonzo>
Group 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>
Group 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 Files:
   
   
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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-25 jmalonzo StatusNone Fixed
    Open/ClosedOpen Closed
2004-05-21 lnu Attached File- Added straw+encodingproblems.diff, #1330

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code