FreeCalypso > hg > freecalypso-tools
comparison uptools/libcoding/gsm7_decode.c @ 803:5637794913a8
pcm-sms-decode & sms-pdu-decode: decode \E for Euro symbol
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 25 Mar 2021 03:06:53 +0000 |
parents | 1c599681fd60 |
children | 30fbaa652ea5 |
comparison
equal
deleted
inserted
replaced
802:1c599681fd60 | 803:5637794913a8 |
---|---|
27 gsm = *inp++; | 27 gsm = *inp++; |
28 uni = gsm7ext_decode_table[gsm]; | 28 uni = gsm7ext_decode_table[gsm]; |
29 if (uni == '\\') { | 29 if (uni == '\\') { |
30 *outp++ = '\\'; | 30 *outp++ = '\\'; |
31 *outp++ = '\\'; | 31 *outp++ = '\\'; |
32 continue; | |
33 } | |
34 if (uni == 0x20AC && ascii_ext < 2) { | |
35 *outp++ = '\\'; | |
36 *outp++ = 'E'; | |
32 continue; | 37 continue; |
33 } | 38 } |
34 is_ext = 1; | 39 is_ext = 1; |
35 } else { | 40 } else { |
36 switch (gsm) { | 41 switch (gsm) { |