From 8d43ef3b309c9b6901f5e202578183c2749f090e Mon Sep 17 00:00:00 2001 From: dockes Date: Thu, 29 Jan 2009 14:24:22 +0000 Subject: [PATCH] simplified rcltext. No need for awk and no assumptions on charset --- src/filters/rcltext | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/src/filters/rcltext b/src/filters/rcltext index 0c257260..d98b939e 100755 --- a/src/filters/rcltext +++ b/src/filters/rcltext @@ -83,27 +83,9 @@ umask 77 # !! Leave the following line unmodified ! #ENDRECFILTCOMMONCODE -checkcmds awk iconv +checkcmds awk +echo '
'
 
-# The strange 'BEGIN' setup is to prevent 'file' from thinking this file
-# is an awk program
-sed -e 's/.//g' -e 's/.//g' "$infile" |\
-awk 'BEGIN'\
-' {
-  print ""
-  print ""
-  print "\n\n

" -} -{ - gsub(/&/, "\\&", $0) - gsub(//, "\\>", $0) +sed -e 's/\&/\&/g' -e 's/" -} -END { - print "

" -}' | iconv -f iso-8859-1 -t UTF-8 -c -s - -# exit normally -exit 0 +echo '
'