FreeCalypso > hg > sms-coding-utils
diff enc-text/ucs2.c @ 8:265b8103530c
sms-encode-text: emit empty messages as ""
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 05 Aug 2023 06:40:50 +0000 |
parents | a16b1b9728f6 |
children | e56bb9f09ff1 |
line wrap: on
line diff
--- a/enc-text/ucs2.c Sat Aug 05 06:32:37 2023 +0000 +++ b/enc-text/ucs2.c Sat Aug 05 06:40:50 2023 +0000 @@ -37,8 +37,10 @@ if (msgtext_unilen) { ucs2_out_bigend(msgtext_uni, ucs2_be, msgtext_unilen); emit_hex_out(ucs2_be, msgtext_unilen * 2, stdout); - } else - fputs("empty", stdout); + } else { + putchar('"'); + putchar('"'); + } putchar('\n'); exit(0); }