Changeset 072c0fe for skype


Ignore:
Timestamp:
2009-02-17T21:12:03Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
25a7eb8
Parents:
8cb17ff
Message:

skyped: handle the case when LANG and LC_ALL env vars are empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    r8cb17ff r072c0fe  
    184184                        return
    185185                try:
    186                         e = msg_text.decode(locale.getdefaultlocale()[1])
     186                        encoding = locale.getdefaultlocale()[1]
     187                        if not encoding:
     188                                raise ValueError
     189                        e = msg_text.decode(encoding)
    187190                except ValueError:
    188191                        e = msg_text.decode('UTF-8')
Note: See TracChangeset for help on using the changeset viewer.