Files
ports/comms/smstools3/files/patch-scripts_sendsms
2026-10-04 04:07:15 +00:00

12 lines
356 B
Plaintext

--- scripts/sendsms.orig 2010-07-08 12:41:13 UTC
+++ scripts/sendsms
@@ -80,7 +80,7 @@ echo "Text: $TEXT"
ALPHABET=""
if which iconv > /dev/null 2>&1; then
- if ! $ECHO -n "$TEXT" | iconv -t ISO-8859-15 >/dev/null 2>&1; then
+ if $ECHO -n "$TEXT" | iconv -t ISO-8859-15 2>&1 | grep "invalid" > /dev/null; then
ALPHABET="Alphabet: UCS"
fi
fi