summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Leonard <David.Leonard@digi.com>2020-08-26 14:37:10 +1000
committerAleksander Morgado <aleksander@aleksander.es>2020-10-14 11:27:33 +0200
commit97e20d1e2b93e9908ebebb17c2d59f3c8fe4e781 (patch)
tree1cf25be282d75907012c361ddcb3fb857514f7d8
parent5bbef22215bf3cfead5436a431543c17a6ffa29f (diff)
sms: fix CMDA SMS UTF-8 translation
Fixes incoming SMS translation issue seen on MC7354 when translating contents from Latin-1 encoding to UTF-8, because the encoding parameter "ISO−8859−1" used U+2212 (MINUS SIGN) instead of U+002D (HYPHEN-MINUS). [mm-sms-part-cdma.c:873] read_bearer_data_user_data(): text/data: ignored (latin to UTF-8 conversion error): 0: Conversion from character set 'ISO−8859−1' to 'UTF-8' is not supported Fix thanks to Peter Hunt (cherry picked from commit 48973e3d72307ca84375d1c7811eb0b04def91ce)
-rw-r--r--src/mm-sms-part-cdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-sms-part-cdma.c b/src/mm-sms-part-cdma.c
index 2903e846..6e3f1179 100644
--- a/src/mm-sms-part-cdma.c
+++ b/src/mm-sms-part-cdma.c
@@ -874,7 +874,7 @@ read_bearer_data_user_data (MMSmsPart *sms_part,
}
latin[i] = '\0';
- text = g_convert (latin, -1, "UTF-8", "ISO−8859−1", NULL, NULL, NULL);
+ text = g_convert (latin, -1, "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
if (!text) {
mm_obj_dbg (log_object, " text/data: ignored (latin to UTF-8 conversion error)");
} else {