Hi Aki, On 02/03/2011 07:20 AM, Aki Niemi wrote: > --- > src/smsutil.c | 10 ---------- > 1 files changed, 0 insertions(+), 10 deletions(-) > > diff --git a/src/smsutil.c b/src/smsutil.c > index 1762391..5c1ae4c 100644 > --- a/src/smsutil.c > +++ b/src/smsutil.c > @@ -2267,16 +2267,6 @@ 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, I'm pretty sure you want to leave this check in, otherwise you will not be compliant with 23.040. If the dialect used is not understood, we have to fall-back to the default, not ignore the message. Regards, -Denis