File: eventhandler-utf-8

package info (click to toggle)
smstools 3.1-2%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,260 kB
  • ctags: 459
  • sloc: ansic: 9,720; sh: 968; php: 115; makefile: 72; awk: 17
file content (13 lines) | stat: -rwxr-xr-x 259 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# This sample converts a received message file from
# ISO to UTF-8 character set.

case "$1" in
  SENT|RECEIVED|FAILED)
    FILE=`mktemp /tmp/smsd_XXXXXX`
    iconv -f ISO-8859-15 -t UTF-8  < $2 > $FILE
    mv $FILE $2
    chmod 644 $2
    ;;
esac