X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=ussd-common%2Fsrc%2Fusr%2Flib%2Fpython2.5%2Fgsmdecode.py;h=f1b727c179dd4f5b1bca1b144adfecebc082bde1;hb=b5d40f6322c687fe9f9de29e4ede4bbc084710f9;hp=a7b5224dc1a2baed5e8bf8e6f835e417973f7d39;hpb=a2ca5f8e95bb36287266998db49b63194ce7ee3e;p=ussd-widget diff --git a/ussd-common/src/usr/lib/python2.5/gsmdecode.py b/ussd-common/src/usr/lib/python2.5/gsmdecode.py index a7b5224..f1b727c 100644 --- a/ussd-common/src/usr/lib/python2.5/gsmdecode.py +++ b/ussd-common/src/usr/lib/python2.5/gsmdecode.py @@ -176,7 +176,7 @@ def decode(s, n): elif (0x4 <= hbits <= 0x7): # general data coding indication - return _decode_general_data_coding(s, h, l) + return _decode_general_data_coding(s, hbits, lbits) elif (0x8 <= hbits <= 0xe): # reserved coding group @@ -197,7 +197,7 @@ def _decode_default_alphabet(s): # TODO: we really might have to do 7 bit character unpacking here # ought to be all in the 7 bit GSM character map - chars = [ _GSM_DEFAULT_ALPHABET[ord(c)] for c in s ] + chars = [ GSM_DEFAULT_ALPHABET[ord(c)] for c in s ] u_str = "".join(chars) return u_str.encode("utf-8")