Changeset 4147 for trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
- Timestamp:
- 03/03/08 11:58:03 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/phone-kit/moko-sms.c
r4139 r4147 301 301 { 302 302 gint i; 303 gunichar2 *ucs2 = sms->payload.data;303 gunichar2 *ucs2 = (gunichar2 *)sms->payload.data; 304 304 305 305 g_debug ("Decoding UCS-2 message"); 306 306 307 for (i = 0; i < sms->payload.length / 2; i++) {307 for (i = 0; i < sms->payload.length / 2; i++) 308 308 ucs2[i] = GUINT16_FROM_BE(ucs2[i]); 309 309 310 message = g_utf16_to_utf8 ((const gunichar2 *)sms->payload.data, 311 sms->payload.length, NULL, NULL, NULL); 312 } 313 310 message = g_utf16_to_utf8 (ucs2, 311 sms->payload.length, NULL, NULL, NULL); 312 314 313 break; 315 314 }
Note: See TracChangeset
for help on using the changeset viewer.
