From 2db2e35a0584099dcad737ff971ffa42a3f1edaf Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 16 Jun 2008 15:13:27 -0400 Subject: [PATCH] web commit by http://alcopop.org/me/openid/: bug with bad input text --- ...lugin_dies_if_input_has_a_non-utf8_character.mdwn | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/bugs/textile_plugin_dies_if_input_has_a_non-utf8_character.mdwn diff --git a/doc/bugs/textile_plugin_dies_if_input_has_a_non-utf8_character.mdwn b/doc/bugs/textile_plugin_dies_if_input_has_a_non-utf8_character.mdwn new file mode 100644 index 000000000..fe08e36b5 --- /dev/null +++ b/doc/bugs/textile_plugin_dies_if_input_has_a_non-utf8_character.mdwn @@ -0,0 +1,12 @@ + 20:03:56$ ikiwiki --setup *setup --rebuild + successfully generated /home/jon/git/ikiwiki/hooks/post-update + utf8 "\x92" does not map to Unicode at /usr/share/perl5/IkiWiki.pm line 320, <$in> chunk 1. + utf8 "\x92" does not map to Unicode at /usr/share/perl5/IkiWiki.pm line 320, <$in> chunk 1. + ikiwiki.setup: Malformed UTF-8 character (fatal) at /usr/share/perl5/Text/Textile.pm line 775. + BEGIN failed--compilation aborted at (eval 6) line 166. + +The first two complaints happen if textile is not loaded, the third fatal one happens if it is. + +0x92 is "single quote" in the evil windows default codepage. It would be nice to handle this gracefully and not abort ikiwiki at this point, or alternatively, die fatally but mention which input page caused the error. + +Interestingly enough, in my case, the input file has several other bad windows characters (0xFC, u-umlaut) which have not caused ikiwiki to abort. -- [[JonDowland]] -- 2.45.0