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
# 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")