opnsense-ports/comms/smstools3/files/patch-scripts_sendsms
Franco Fichtner 90158511f9 */*: sync with upstream
Taken from: FreeBSD
2016-11-04 23:07:26 +01:00

11 lines
356 B
Text

--- 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