summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-07-16 22:50:55 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-07-16 22:51:20 -0500
commitbce1879c1bd8b6fc64ed4ef4d133d70c0d1f1ded (patch)
tree40e731d07eddc01cbac543bb7f6838a35e5c2b33 /src/util.c
parent5023fe85686ffab7d8b4b303d64912b4d09373e3 (diff)
downloadofono-bce1879c1bd8b6fc64ed4ef4d133d70c0d1f1ded.tar.bz2
util: update comment from previous commit
Cite the specification verbatim
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/util.c b/src/util.c
index 41ef3d4c..a9a69f92 100644
--- a/src/util.c
+++ b/src/util.c
@@ -629,12 +629,16 @@ char *convert_gsm_to_utf8_with_lang(const unsigned char *text, long len,
c = gsm_single_shift_lookup(&t, text[i]);
/*
- * According to the 3GPP specifications 23.038
- * section 6.2.1.1:
- * In the case there is no character in the extension
- * table, the character of the main default alphabet
- * table or the character from the National Language
- * Locking Shift Table should be displayed.
+ * According to the comment in the table from
+ * 3GPP 23.038, Section 6.2.1.1:
+ * "In the event that an MS receives a code where
+ * a symbol is not represented in the above table
+ * then the MS shall display either the character
+ * shown in the main GSM 7 bit default alphabet
+ * table in subclause 6.2.1., or the character from
+ * the National Language Locking Shift Table in the
+ * case where the locking shift mechanism as defined
+ * in subclause 6.2.1.2.3 is used."
*/
if (c == GUND)
c = gsm_locking_shift_lookup(&t, text[i]);