File: checkhandler-utf-8

package info (click to toggle)
smstools 3.1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,596 kB
  • ctags: 820
  • sloc: ansic: 14,175; sh: 1,173; php: 115; makefile: 44; awk: 17
file content (10 lines) | stat: -rwxr-xr-x 287 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# This sample converts outgoing UTF-8 file to ISO character set
# which is an internal format used in smsd.

# After version 3.0.8 this is not needed, conversion is automatic.

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