File: checkhandler-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 (8 lines) | stat: -rwxr-xr-x 219 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/bin/sh
# This sample converts outgoing UTF-8 file to ISO character set
# which is an internal format used in smsd.

FILE=`mktemp /tmp/smsd_XXXXXX`
iconv -t ISO-8859-15 -f UTF-8  < $1 > $FILE
mv $FILE $1
chmod 644 $1