Fix incoming sms encoding issue

Some french char, and also emojies was rendered as "\324\2343" chars.

This has been introduced with d27f7e1, when the printf %b became %s,
while moving it to the new sxmo_hook_smslog.sh.

Reverting this fix the problem.

Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
Willow Barraco
2023-07-04 10:22:06 +02:00
committed by Anjandev Momi
parent 835cece3da
commit 2c0c56dfca

View File

@@ -26,10 +26,10 @@ fi
# if group chain also print the sender
if [ "$NUM" != "$LOGDIRNUM" ] && [ "$ACTION" = "recv" ]; then
printf "%s from %s at %s:\n%s\n" \
printf "%s from %s at %s:\n%b\n" \
"$VERB" "$NUM" "$TIME" "$TEXT"
else
printf "%s at %s:\n%s\n" \
printf "%s at %s:\n%b\n" \
"$VERB" "$TIME" "$TEXT"
fi