Do supported dialect detection in sms.c

This commit is contained in:
Denis Kenzior 2009-09-08 12:45:04 -05:00
parent b1932334da
commit b2bde46bfb
1 changed files with 8 additions and 0 deletions

View File

@ -2130,6 +2130,14 @@ char *sms_decode_text(GSList *sms_list)
sms_extract_language_variant(sms, &locking_shift, &single_shift);
/* If language is not defined in 3GPP TS 23.038,
* implementations are instructed to ignore it' */
if (locking_shift >= GSM_DIALECT_INVALID)
locking_shift = GSM_DIALECT_DEFAULT;
if (single_shift >= GSM_DIALECT_INVALID)
single_shift = GSM_DIALECT_DEFAULT;
converted = convert_gsm_to_utf8_with_lang(buf, written,
NULL, NULL, 0,
locking_shift,