projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc83131
)
Make compiler happy
author
Denis Kenzior
<denkenz@gmail.com>
Mon, 22 Jun 2009 17:45:18 +0000
(12:45 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Mon, 22 Jun 2009 18:22:14 +0000
(13:22 -0500)
src/smsutil.c
patch
|
blob
|
history
diff --git
a/src/smsutil.c
b/src/smsutil.c
index
beb11b4
..
3825f32
100644
(file)
--- a/
src/smsutil.c
+++ b/
src/smsutil.c
@@
-2239,9
+2239,13
@@
GSList *sms_text_prepare(const char *utf8, guint16 ref,
/* UDHI, UDL, UD and DCS actually depend on what we have in the text */
gsm_encoded = convert_utf8_to_gsm(utf8, -1, NULL, &written, 0);
- if (!gsm_encoded)
+ if (!gsm_encoded) {
+ gsize converted;
+
ucs2_encoded = g_convert(utf8, -1, "UCS-2BE//TRANSLIT", "UTF-8",
- NULL, &written, NULL);
+ NULL, &converted, NULL);
+ written = converted;
+ }
if (!gsm_encoded && !ucs2_encoded)
return NULL;