Wicd-curses crashes if key contains accents (utf-8 encoding)

Bug #718662 reported by altor
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wicd
Fix Released
Medium
David Paleino
wicd (Debian)
Fix Released
Unknown

Bug Description

When I try to connect to a network with an accent in the wpa pass phrase, wicd-client said wrong password and when I try to configure this network under wicd-curses, it crashes :
Traceback (most recent call last):
  File "/usr/share/wicd/curses/wicd-curses.py", line 904, in call_update_ui
    self.update_ui(True)
  File "/usr/share/wicd/curses/wicd-curses.py", line 89, in wrapper
    return func(*args, **kargs)
  File "/usr/share/wicd/curses/wicd-curses.py", line 915, in update_ui
    self.handle_keys(input_data[1])
  File "/usr/share/wicd/curses/wicd-curses.py", line 822, in handle_keys
    self.diag = WirelessSettingsDialog(pos,self.frame)
  File "/usr/share/wicd/curses/netentry_curses.py", line 270, in __init__
    self.set_values()
  File "/usr/share/wicd/curses/netentry_curses.py", line 327, in set_values
    self.change_encrypt_method()
  File "/usr/share/wicd/curses/netentry_curses.py", line 418, in change_encrypt_method
    wireless.GetWirelessProperty(self.networkid, field[0])))
  File "/usr/lib64/python2.6/site-packages/wicd/misc.py", line 493, in noneToBlankString
    return str(text)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 3: ordinal not in range(128)

I'm using Slackware64 -current and wicd-1.7.0

my wicd-log when I use wicd-client :
2011/02/14 11:53:08 :: Connecting to wireless network Aurelien
2011/02/14 11:53:09 :: Putting interface down
2011/02/14 11:53:09 :: Releasing DHCP leases...
2011/02/14 11:53:09 :: Setting false IP...
2011/02/14 11:53:09 :: Stopping wpa_supplicant
2011/02/14 11:53:09 :: Flushing the routing table...
2011/02/14 11:53:09 :: Putting interface up...
2011/02/14 11:53:11 :: Generating psk...
2011/02/14 11:53:11 :: Attempting to authenticate...
2011/02/14 11:53:46 :: wpa_supplicant authentication may have failed.
2011/02/14 11:53:46 :: connect result is Failed
2011/02/14 11:53:46 :: exiting connection thread
2011/02/14 11:53:47 :: Sending connection attempt result bad_pass

There is no log for wicd-curse.

I have the same issue under xterm, urxvt, tty, root or my user.

Sorry for my english.

Related branches

Revision history for this message
David Paleino (dpaleino) wrote :

I had this reported in Debian.

I'll work on this ASAP.

Changed in wicd:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → David Paleino (dpaleino)
summary: - Wicd-curse crash with a wpa password with accent in utf 8 encoding
+ Wicd-curses crashes if key contains accents (utf-8 encoding)
Revision history for this message
altor (laurent-cham) wrote : Re: [Bug 718662] Re: Wicd-curse crash with a wpa password with accent in utf 8 encoding

Ok, thanks.

Laurent

On 14/02/2011 12:15, David Paleino wrote:
> I had this reported in Debian.
>
> I'll work on this ASAP.
>
> ** Changed in: wicd
> Status: New => Confirmed
>
> ** Changed in: wicd
> Importance: Undecided => Medium
>
> ** Bug watch added: Debian Bug tracker #612981
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612981
>
> ** Also affects: wicd (Debian) via
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=612981
> Importance: Unknown
> Status: Unknown
>
> ** Changed in: wicd
> Assignee: (unassigned) => David Paleino (dpaleino)
>
> ** Summary changed:
>
> - Wicd-curse crash with a wpa password with accent in utf 8 encoding
> + Wicd-curses crashes if key contains accents (utf-8 encoding)
>

Changed in wicd (Debian):
status: Unknown → Confirmed
David Paleino (dpaleino)
Changed in wicd:
milestone: none → 1.7.1
David Paleino (dpaleino)
Changed in wicd:
status: Confirmed → Fix Committed
Changed in wicd (Debian):
status: Confirmed → Fix Released
David Paleino (dpaleino)
Changed in wicd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.