bugStraw, desktop news aggregator - Bugs: bug #6745, Locale problem when viewing...

 
 

bug #6745: Locale problem when viewing articles

Submitted by:  Antoine Pitrou <pitrou>
Submitted on:  Tue 25 Nov 2003 04:57:41 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: BugStatus: Works For Me
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.

 

Wed 23 Jun 2004 12:48:10 AM UTC, comment #4:

I'm having similar problems on Fedora Core 2, straw 0.23. Some feeds do not update, saying en_US.ISO8859-1 is an unknown encoding. Other feeds do update, but article summaries will not display. Same configuration worked with straw 0.22.

Boris Goldowsky <bgoldowsky>
Sun 13 Jun 2004 10:38:04 AM UTC, comment #3:

I can confirm this on Gentoo Linux with Straw 0.23. It started only recently when I upgraded to 0.23 coming from 0.22.1 (iirc). My environment variables are:

GDM_LANG=de_DE.UTF-8
LANG=de_DE@euro
LANGUAGE=de_DE@euro
LC_COLLATE=C

When I set "LANG" to something funny I get errors about that too, so the LANG variable is read.

$ export LANG=wurst
$ straw

(process:6336): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
[ ... snip ... ]
locale.Error: unsupported locale setting

When I just start it with default settings it's just as with ansorg.

Now heres the workaround: start straw with "LANG" set to nothing ("export LANG=") and "LANGUAGE" to your language, whatever you use, it works for me at least.

I don't think that this is a Gentoo specific configuration bug and I think this is a major blocker. It should really be fixed.

Martin Probst <martinpr>
Wed 28 Apr 2004 06:36:42 AM UTC, comment #2:

still there in 0.23, Gentoo Linux

I tried the suggested Workaround but it does not work here. No matter what Language I set I do get:

$ LANGUAGE=en straw

    • (straw:16571): WARNING **: `GtkTextSearchFlags' is not an enum type

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

Jens Ansorg <ansorg>
Sun 01 Feb 2004 12:27:22 AM UTC, comment #1:

This bug is still there in 0.21.2... (Mandrake version)

Antoine Pitrou <pitrou>
Tue 25 Nov 2003 04:57:41 AM UTC, original submission:

Articles are not displayed on the lower left pane. Instead I get the following message on stderr each time I click on an article :

LookupError: unknown encoding: fr
Traceback (most recent call last):
File "src/lib/MainWindow.py", line 328, in item_selection_changed
File "src/lib/MainWindow.py", line 349, in display_item
File "src/lib/Main.py", line 152, in display_item
File "src/lib/MainWindow.py", line 758, in display_item
File "src/lib/MainWindow.py", line 111, in display_item
File "src/lib/MainWindow.py", line 162, in htmlify_item

This get solved when I changed the LANGUAGE variable.
Normally I have LANGUAGE=fr_FR:fr (standard setting under Mandrake).
It works if I type: LANGUAGE=fr straw&

Antoine Pitrou <pitrou>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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
Sun 04 Jul 2004 10:12:58 PM UTClnuStatusNone=>Works For Me
  Open/ClosedOpen=>Closed
Wed 23 Jun 2004 12:48:10 AM UTCbgoldowskyCarbon-Copy-=>Added bgoldowsky

Back to the top


Powered by Savane 3.1-cleanup1