From 674a9412fe634a0417328fd66d0803f80441264b Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 20 Sep 2010 15:40:20 -0500 Subject: [PATCH] gsm: allow use of GSM 03.38 character set (bgo #627935) It's only really used for phonebook and SMS PDU mode in the specs, which we don't do yet, so if this is the only charset the device supports we'll try to use it. --- src/mm-generic-gsm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mm-generic-gsm.c b/src/mm-generic-gsm.c index 3d0e3986..0bdeec42 100644 --- a/src/mm-generic-gsm.c +++ b/src/mm-generic-gsm.c @@ -863,6 +863,7 @@ static guint32 best_charsets[] = { MM_MODEM_CHARSET_UCS2, MM_MODEM_CHARSET_8859_1, MM_MODEM_CHARSET_IRA, + MM_MODEM_CHARSET_GSM, MM_MODEM_CHARSET_UNKNOWN }; @@ -921,7 +922,7 @@ supported_charsets_done (MMModem *modem, } /* Switch the device's charset; we prefer UTF-8, but UCS2 will do too */ - mm_modem_set_charset (modem, MM_MODEM_CHARSET_UTF8, enabled_set_charset_done, info); + mm_modem_set_charset (modem, best_charsets[0], enabled_set_charset_done, info); } static void