Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85311

Summary: wammu-.0,8 does not (still) work on unicode locales
Product: Gentoo Linux Reporter: Axel Dyks <XL>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Axel Dyks 2005-03-15 00:47:15 UTC
> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
> wammu
!!! now connect to the phone !!!
--------------- System information ----------------
Python       2.3.4
wxPython     2.4.2.4u
Wammu        0.8
python-gammu 0.7
Gammu        1.00.04
locales      en_US (utf)
-------------------- Traceback --------------------
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/Wammu/Main.py", line 1443, in PhoneConnect
    self.TogglePhoneMenus(True)
  File "/usr/lib/python2.3/site-packages/Wammu/Main.py", line 415, in TogglePhoneMenus
    self.OnTimer()
  File "/usr/lib/python2.3/site-packages/Wammu/Main.py", line 369, in OnTimer
    self.SetStatusText(_('Bat: %d %% (%s), Sig: %d %%, Time: %s') % (b['BatteryPercent'], power, s['SignalPercent'], d.strftime('%c')), 1)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
---------------------------------------------------
You have probably found a bug. You might help improving this software by
sending above text and description how it was caused to michal@cihar.com.
---------------------------------------------------

Axel

P. S.: I'll send a link to this bug to michal@cihar.com 
P. P. S.: Does anybody know , why "locale.py" prefers env-variable
LANGUAGE over LANG, LC_*, ...?  I thought that only openoffice is
relying on "LANGUAGE"
Comment 1 Michal Čihař 2005-03-15 01:09:51 UTC
See http://bugs.cihar.com/5
Comment 2 Axel Dyks 2005-03-15 01:24:32 UTC
Ah, yes!
Setting LC_TIME to "en_US.UTF-8" works.

BTW: Current month ("March"="M
Comment 3 Axel Dyks 2005-03-15 01:24:32 UTC
Ah, yes!
Setting LC_TIME to "en_US.UTF-8" works.

BTW: Current month ("March"="März" in German) is the only one
  that leads into trouble. The others do not contain
  "umlaute" in their (german) names. :-)

Should I mark the bug as "RESOLVED UPSTREAM" (next version)?

Cheers,
Axel
Comment 4 Michal Čihař 2005-03-15 04:00:21 UTC
That sounds reasonable to me.
Comment 5 Axel Dyks 2005-03-15 06:01:42 UTC
Will be fixed in next version according to info from author.