projects
/
infodrom
/
calendar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5b5cba
)
Handle UTF-8
author
Joey Schulze
<joey@infodrom.org>
Thu, 12 Apr 2007 08:00:47 +0000
(08:00 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Thu, 12 Apr 2007 08:00:47 +0000
(08:00 +0000)
mail-calendar
patch
|
blob
|
history
diff --git
a/mail-calendar
b/mail-calendar
index
e394b1f
..
e77c67c
100755
(executable)
--- a/
mail-calendar
+++ b/
mail-calendar
@@
-81,12
+81,12
@@
esac
secs=$[ $opt_advance * 86400 ]
c_date=`date -d now+${secs}seconds +%d.%m`
secs=$[ $opt_advance * 86400 ]
c_date=`date -d now+${secs}seconds +%d.%m`
-s_date=`LANG=$opt_lang date -d now+${secs}seconds "+$opt_dateform"`
+s_date=`LANG=$opt_lang date -d now+${secs}seconds "+$opt_dateform"
|iconv -f utf8 -t iso8859-1
`
tmp=`tempfile`
trap 'rm -f $tmp' INT EXIT
tmp=`tempfile`
trap 'rm -f $tmp' INT EXIT
-calendar -l 0 -w 0 -t $c_date > $tmp
+calendar -l 0 -w 0 -t $c_date
|iconv -c -f utf8 -t iso8859-1
> $tmp
if [ -s $tmp ]
then
if [ -s $tmp ]
then