From fde36ecccc9d90a0050f8dd3145d4125c4b65600 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 26 Jan 2012 19:30:43 +0100 Subject: [PATCH] Handle garbled unrtf http-equiv header causing pbs with html5 handler --- src/filters/rclrtf | 4 +++- src/sampleconf/mimeconf | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/filters/rclrtf b/src/filters/rclrtf index 24abafe4..abfe6e2f 100755 --- a/src/filters/rclrtf +++ b/src/filters/rclrtf @@ -83,6 +83,7 @@ checkcmds awk unrtf # output the result # The strange 'BEGIN' setup is to prevent 'file' from thinking this file # is an awk program +# The thing about the charset is that unrtf outputs a garbled one. unrtf --nopict --html "$infile" 2> /dev/null | awk 'BEGIN'\ ' { @@ -90,10 +91,11 @@ awk 'BEGIN'\ } /<\/head>/{ if (gothead == 0) { - printf("\n") + printf("\n") gothead = 1 } } +/