Comment 0 for bug 273564

Revision history for this message
Ricardo Martins (meqif) wrote :

When LC_ALL is undefined ( LC_ALL="" ), gwibber fails to retrieve messages

<gwibber.config.Account instance at 0x117f7a0> Traceback (most recent call last):
  File "/tmp/yaourt-tmp-meqif/aur-gwibber-bzr/gwibber-bzr/pkg/usr/lib/python2.5/site-packages/gwibber/microblog/__init__.py", line 32, in get_message_data
  File "/tmp/yaourt-tmp-meqif/aur-gwibber-bzr/gwibber-bzr/pkg/usr/lib/python2.5/site-packages/gwibber/microblog/twitter.py", line 65, in get_messages
  File "/tmp/yaourt-tmp-meqif/aur-gwibber-bzr/gwibber-bzr/pkg/usr/lib/python2.5/site-packages/gwibber/microblog/twitter.py", line 24, in __init__
  File "/tmp/yaourt-tmp-meqif/aur-gwibber-bzr/gwibber-bzr/pkg/usr/lib/python2.5/site-packages/gwibber/microblog/support/__init__.py", line 12, in parse_time
    # ;-)
  File "/usr/lib/python2.5/locale.py", line 461, in getlocale
    raise TypeError, 'category LC_ALL is not supported'
TypeError: category LC_ALL is not supported
Failed to retrieve messages

meqif@macbookpro:: locale [~]
LANG=pt_PT.utf8
LC_CTYPE="pt_PT.utf8"
LC_NUMERIC="pt_PT.utf8"
LC_TIME="pt_PT.utf8"
LC_COLLATE=C
LC_MONETARY="pt_PT.utf8"
LC_MESSAGES="pt_PT.utf8"
LC_PAPER="pt_PT.utf8"
LC_NAME="pt_PT.utf8"
LC_ADDRESS="pt_PT.utf8"
LC_TELEPHONE="pt_PT.utf8"
LC_MEASUREMENT="pt_PT.utf8"
LC_IDENTIFICATION="pt_PT.utf8"
LC_ALL=

Setting LC_ALL to my locale (pt_PT.utf8) fixed that problem temporarily. Gwibber should fallback to LC_ALL="C"