diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2016-11-02 11:29:28 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2016-11-02 11:29:28 +0000 |
commit | ad3225e3499816421f0dd0763d7c30d5f1a7a57f (patch) | |
tree | 89ef722244fefd6316d4fd5457d479df0944a8c3 /comms/smstools3/files/patch-scripts_sendsms | |
parent | java/jakarta-commons-collections: (diff) |
- Add UTF8 option [1]
- Patch sendsms script to correctly parse iconv command output [2]
While here:
- Add TIMESTAMP to distinfo
- Regenerate patches
- Unsilence post-install target
PR: 205973 [1], 205978 [2]
Submitted by: satorium77@gmail.com
Diffstat (limited to 'comms/smstools3/files/patch-scripts_sendsms')
-rw-r--r-- | comms/smstools3/files/patch-scripts_sendsms | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/comms/smstools3/files/patch-scripts_sendsms b/comms/smstools3/files/patch-scripts_sendsms new file mode 100644 index 000000000000..e58196e787a3 --- /dev/null +++ b/comms/smstools3/files/patch-scripts_sendsms @@ -0,0 +1,11 @@ +--- 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 |