aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-08-12 17:07:54 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-08-12 17:22:27 +0200
commit1810925dfb6115f50d6b82eede833468145349c0 (patch)
tree6fe616b6b1797b3a4b9757c235c51e77b87d5456
parent1d7f3b5eb27154b5d1ef698b40edfb9f74a9d4d2 (diff)
sms: Added comment about the gsm_7bit_alphabet table
The table structure is not intuitive, so this comment shall aid to understand this.
-rw-r--r--src/gsm/gsm_utils.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c
index e248078f..5241c91c 100644
--- a/src/gsm/gsm_utils.c
+++ b/src/gsm/gsm_utils.c
@@ -80,8 +80,12 @@
* left out as they can't be handled with a char and
* since most phones don't display or write these
* characters this would only needlessly make the code
- * more complex
-*/
+ * more complex.
+ *
+ * Note that this table contains the latin1->7bit mapping _and_ has
+ * been merged with the reverse mapping (7bit->latin1) for the
+ * extended characters at offset 0x7f.
+ */
static unsigned char gsm_7bit_alphabet[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0a, 0xff, 0xff, 0x0d, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,