projects
/
ussd-widget
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed typo
[ussd-widget]
/
ussd-common
/
src
/
usr
/
lib
/
python2.5
/
gsmdecode.py
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
(file)
--- 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
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
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
# 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")
u_str = "".join(chars)
return u_str.encode("utf-8")