summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-01-19 13:29:10 -0600
committerBrandon Bayer <bbayer@multitech.com>2016-01-19 15:28:48 -0600
commitbf3d2e8a736f43b99a6805e543423d811676518e (patch)
treec1732f052eb26395fa8113242c171809f34d7e85
parentba2d664d7c504fb5e313e90a5425c98b9375c7ec (diff)
downloadsms-utils-0.0.12.tar.gz
sms-utils-0.0.12.tar.bz2
sms-utils-0.0.12.zip
fix: special characters like @ $ not working on CDMA radios0.0.12
-rw-r--r--src/pdu_decode.c5
-rw-r--r--src/pdu_encode.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/src/pdu_decode.c b/src/pdu_decode.c
index 934aef5..d6ad385 100644
--- a/src/pdu_decode.c
+++ b/src/pdu_decode.c
@@ -309,9 +309,8 @@ int pdu_decode_user_data(const char *pdu_str, struct pdu_info *pdu, int *nr_octe
pdu->user_data[i] = '\0';
}
- //Only for 7-bit character sets
- if ((pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) ||
- (pdu->data_coding.general.alphabet == PDU_ALPHABET_CDMA_DEFAULT)) {
+ //Only for GSM 7-bit character set
+ if (pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) {
int read = 0;
int store = 0;
diff --git a/src/pdu_encode.c b/src/pdu_encode.c
index f0d8c96..ce62ee8 100644
--- a/src/pdu_encode.c
+++ b/src/pdu_encode.c
@@ -183,9 +183,8 @@ int pdu_encode_user_data(char *pdu_str, size_t len, struct pdu_info *pdu, int *n
}
- //Convert to GSM character set, Only for 7-bit character sets
- if ((pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) ||
- (pdu->data_coding.general.alphabet == PDU_ALPHABET_CDMA_DEFAULT)) {
+ //Convert to GSM character set, Only for 7-bit character set
+ if (pdu->data_coding.general.alphabet == PDU_ALPHABET_DEFAULT) {
int read = 0;
int store = 0;
char initial_user_data[PDU_UD_7BIT_MAX];