Changeset 885e563e


Ignore:
Timestamp:
2008-09-08T01:10:00Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
68c162b
Parents:
85ebf71
Message:

skyped: when sending, encode using utf8 if we can't get the system default

this fixes a runtime error on osx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skyped.py

    r85ebf71 r885e563e  
    178178                if not len(msg_text) or msg_text == "PONG":
    179179                        return
    180                 e = msg_text.decode(locale.getdefaultlocale()[1])
     180                try:
     181                        e = msg_text.decode(locale.getdefaultlocale()[1])
     182                except ValueError:
     183                        e = msg_text.decode('UTF-8')
    181184                dprint('>> ' + e)
    182185                try:
Note: See TracChangeset for help on using the changeset viewer.