summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-04-13 10:32:23 -0500
committerBrandon Bayer <bbayer@multitech.com>2016-04-13 11:07:08 -0500
commitb707562b962d5bed4034f47e02f8c5e64de8fbd1 (patch)
tree0f90b1c743b7c52a0f3a6eb76ba1a12817765740 /src
parentdce78f7a2bd56c6582c123eb3b070255b5781e2d (diff)
downloadsms-utils-b707562b962d5bed4034f47e02f8c5e64de8fbd1.tar.gz
sms-utils-b707562b962d5bed4034f47e02f8c5e64de8fbd1.tar.bz2
sms-utils-b707562b962d5bed4034f47e02f8c5e64de8fbd1.zip
fix: characters = and `1.0.0
Diffstat (limited to 'src')
-rw-r--r--src/pdu.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/pdu.c b/src/pdu.c
index 07a976c..044a87f 100644
--- a/src/pdu.c
+++ b/src/pdu.c
@@ -36,25 +36,24 @@
#include "pdu.h"
#include "sms_utils.h"
-// ` is not a conversion, just a untranslatable letter
char strGSMTable[GSM_TABLE_SIZE] = {
'@','£','$','¥','è','é','ù','ì','ò','Ç','\n','Ø','ø','\r','Å','å',
- 'Δ','_','Φ','Γ','Λ','Ω','Π','Ψ','Σ','Θ','Ξ','`','Æ','æ','ß','É',
- ' ','!','\"','#','¤','%','&','\'','(',')','*','=',',','-','.','/',
+ 'Δ','_','Φ','Γ','Λ','Ω','Π','Ψ','Σ','Θ','Ξ','\x1B','Æ','æ','ß','É',
+ ' ','!','\"','#','¤','%','&','\'','(',')','*','+',',','-','.','/',
'0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?',
'¡','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O',
- 'P','Q','R','S','T','U','V','W','X','Y','Z','Ä','Ö','Ñ','Ü','`',
+ 'P','Q','R','S','T','U','V','W','X','Y','Z','Ä','Ö','Ñ','Ü','\xA7',
'¿','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o',
'p','q','r','s','t','u','v','w','x','y','z','ä','ö','ñ','ü','à'};
char strExtendedTable[GSM_TABLE_SIZE] = {
- '`','`','`','`','`','`','`','`','`','`','`','`','`','`','`','`',
- '`','`','`','`','^','`','`','`','`','`','`','`','`','`','`','`',
- '`','`','`','`','`','`','`','`','{','}','`','`','`','`','`','\\',
- '`','`','`','`','`','`','`','`','`','`','`','`','[','~',']','`',
- '|','`','`','`','`','`','`','`','`','`','`','`','`','`','`','`',
- '`','`','`','`','`','`','`','`','`','`','`','`','`','`','`','`',
- '`','`','`','`','`','€','`','`','`','`','`','`','`','`','`','`',
- '`','`','`','`','`','`','`','`','`','`','`','`','`','`','`','`'};
+ ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
+ ' ',' ',' ',' ','^',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
+ ' ',' ',' ',' ',' ',' ',' ','`','{','}',' ',' ',' ',' ',' ','\\',
+ ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','[','~',']',' ',
+ '|',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
+ ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
+ ' ',' ',' ',' ',' ','€',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
+ ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '};
int hex_nibble_scan(const char *buf, size_t len)
{