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
This commit is contained in:
David Leonard
2020-08-26 14:37:10 +10:00
parent 599f545c0d
commit 48973e3d72

View File

@@ -874,7 +874,7 @@ read_bearer_data_user_data (MMSmsPart *sms_part,
}
latin[i] = '\0';
text = g_convert (latin, -1, "UTF-8", "ISO88591", 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 {