summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-07-06 15:10:21 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-07-06 19:33:30 -0500
commitc093a75f89389835f7ac2d51b92bed3ee3acd761 (patch)
tree559dc58a216e67cfd3fb69f683005184295676ca /src
parentea4309886728bfae8fcd0231fb91985f261f96ef (diff)
downloadofono-c093a75f89389835f7ac2d51b92bed3ee3acd761.tar.bz2
Convert SIM strings properly
Diffstat (limited to 'src')
-rw-r--r--src/sim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sim.c b/src/sim.c
index 8485e1ee..3df862b9 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -237,9 +237,7 @@ static void sim_spn_read_cb(const struct ofono_error *error,
if (endp)
length = endp - sdata;
- /*
- * The specification has this to say about the encoding of SPN:
- * Coding:
+ /* TS 31.102 says:
*
* the string shall use:
*
@@ -250,9 +248,11 @@ static void sim_spn_read_cb(const struct ofono_error *error,
* - or one of the UCS2 code options defined in the annex of TS
* 31.101 [11].
*
- * Assume the first option.
+ * 31.101 has no such annex though. 51.101 refers to Annex B of
+ * itself which is not there either. 11.11 contains the same
+ * paragraph as 51.101 and has an Annex B which we implement.
*/
- sim->spn = convert_gsm_to_utf8(sdata, length, NULL, NULL, 0xff);
+ sim->spn = sim_string_to_utf8(sdata, length);
for (l = sim->update_spn_notify; l; l = l->next)
sim_spn_notify(modem, l->data);