FreeCalypso > hg > freecalypso-tools
comparison uptools/atcmd/smsend_multmain.c @ 967:6bf473f77fc4
fcup-smsend: support backslash escapes in UCS-2 mode too
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 01 Sep 2023 16:43:35 +0000 |
parents | ec7e23d5151f |
children | ec736c59845c |
comparison
equal
deleted
inserted
replaced
966:ec7e23d5151f | 967:6bf473f77fc4 |
---|---|
160 { | 160 { |
161 u_short msgtext_uni[70]; | 161 u_short msgtext_uni[70]; |
162 unsigned msgtext_unilen; | 162 unsigned msgtext_unilen; |
163 int rc; | 163 int rc; |
164 | 164 |
165 rc = utf8_to_ucs2(msgtext, msgtext_uni, 70, &msgtext_unilen); | 165 rc = utf8_to_ucs2(msgtext, msgtext_uni, 70, &msgtext_unilen, 0); |
166 if (rc == -1) { | 166 if (rc == -1) { |
167 fprintf(stderr, "input line %d: invalid UTF-8 message\n", | 167 fprintf(stderr, "input line %d: invalid UTF-8 message\n", |
168 lineno); | 168 lineno); |
169 exit(ERROR_USAGE); | 169 exit(ERROR_USAGE); |
170 } | 170 } |