changeset 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
files uptools/libcoding/gsm7_decode.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/uptools/libcoding/gsm7_decode.c	Thu Mar 25 02:58:30 2021 +0000
+++ b/uptools/libcoding/gsm7_decode.c	Thu Mar 25 03:06:53 2021 +0000
@@ -31,6 +31,11 @@
 				*outp++ = '\\';
 				continue;
 			}
+			if (uni == 0x20AC && ascii_ext < 2) {
+				*outp++ = '\\';
+				*outp++ = 'E';
+				continue;
+			}
 			is_ext = 1;
 		} else {
 			switch (gsm) {