aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm-modem-helpers.c')
-rw-r--r--src/mm-modem-helpers.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c
index ec07aada..98adb87f 100644
--- a/src/mm-modem-helpers.c
+++ b/src/mm-modem-helpers.c
@@ -1268,8 +1268,9 @@ parse_access_tech (const gchar *str)
}
GList *
-mm_3gpp_parse_cops_test_response (const gchar *reply,
- GError **error)
+mm_3gpp_parse_cops_test_response (const gchar *reply,
+ MMModemCharset cur_charset,
+ GError **error)
{
GRegex *r;
GList *info_list = NULL;
@@ -1363,6 +1364,11 @@ mm_3gpp_parse_cops_test_response (const gchar *reply,
info->operator_short = mm_get_string_unquoted_from_match_info (match_info, 3);
info->operator_code = mm_get_string_unquoted_from_match_info (match_info, 4);
+ /* The returned strings may be given in e.g. UCS2 */
+ mm_3gpp_normalize_operator (&info->operator_long, cur_charset);
+ mm_3gpp_normalize_operator (&info->operator_short, cur_charset);
+ mm_3gpp_normalize_operator (&info->operator_code, cur_charset);
+
/* Only try for access technology with UMTS-format matches.
* If none give, assume GSM */
tmp = (umts_format ?