aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/utf8_warnings_are_meaningless.mdwn
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawlVTXTWaOzAMhKML3EH8LH99Mu_TrvHhEA <Mark@web>2014-01-11 18:36:47 -0400
committeradmin <admin@branchable.com>2014-01-11 18:36:47 -0400
commit42aebb6eb8327836b7ae50630537dd0b27a17c92 (patch)
tree44dc05821aefe6eb862c5b7eabe9ecdd2e2172d2 /doc/bugs/utf8_warnings_are_meaningless.mdwn
parented90210efa5b0839c391ad2ba99343747c277c62 (diff)
downloadikiwiki-42aebb6eb8327836b7ae50630537dd0b27a17c92.tar
ikiwiki-42aebb6eb8327836b7ae50630537dd0b27a17c92.tar.gz
don't use utf8::valid, maybe print $file
Diffstat (limited to 'doc/bugs/utf8_warnings_are_meaningless.mdwn')
-rw-r--r--doc/bugs/utf8_warnings_are_meaningless.mdwn9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/bugs/utf8_warnings_are_meaningless.mdwn b/doc/bugs/utf8_warnings_are_meaningless.mdwn
new file mode 100644
index 000000000..7c1efa0a0
--- /dev/null
+++ b/doc/bugs/utf8_warnings_are_meaningless.mdwn
@@ -0,0 +1,9 @@
+Hunting down what was generating
+
+ utf8 "\xEB" does not map to Unicode at /usr/share/perl5/IkiWiki.pm line 873, <$in> chunk 1.
+
+lead me to a call to `utf8::valid`, which lead to http://perldoc.perl.org/utf8.html which says this is an "INTERNAL" function:
+
+> Main reason for this routine is to allow Perl's testsuite to check that operations have left strings in a consistent state. You most probably want to use `utf8::is_utf8()` instead.
+
+Apparently the main point of the function is to emit the warning in unit tests - problem is, in the ikiwiki context, the only useful thing to warn about would be the name of the file you're trying to parse, not the name of the source code. Alternatively, since the code does continue on with the data, *not* whining about it might be an option :-) but an actionable message would be better.