summaryrefslogtreecommitdiffstats
path: root/src/smsutil.c
diff options
context:
space:
mode:
authorJeevaka Badrappan <jeevaka.badrappan@elektrobit.com>2010-12-02 01:43:27 -0800
committerDenis Kenzior <denkenz@gmail.com>2010-12-02 08:08:54 -0600
commitef785f93734e0cb5e7a24c7ce958eb3a4c461523 (patch)
treef2ddae1d0b5a97c08a6b869cbf0d5ffea727c76b /src/smsutil.c
parent88ef20591c6e4c50a7fa70c3540ee71f0dbd4a92 (diff)
downloadofono-ef785f93734e0cb5e7a24c7ce958eb3a4c461523.tar.bz2
smsutil: Fix issue in mwi dcs decoding
Diffstat (limited to 'src/smsutil.c')
-rw-r--r--src/smsutil.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/smsutil.c b/src/smsutil.c
index 631d9496..f4eee241 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -219,7 +219,12 @@ gboolean sms_mwi_dcs_decode(guint8 dcs, enum sms_mwi_type *type,
else
dis = FALSE;
- if (upper == 3)
+ /*
+ * As per 3GPP TS 23.038 specification, if bits 7..4 set to 1110,
+ * text included in the user data is coded in the uncompresssed
+ * UCS2 character set.
+ */
+ if (upper == 2)
ch = SMS_CHARSET_UCS2;
else
ch = SMS_CHARSET_7BIT;