]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn
8f350667d2fc6708927a04fa7dc625a3873f9f16
[git.ikiwiki.info.git] / doc / bugs / yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn
1 I converted an ikiwiki setup file to YAML as
2 [[documented|tips/yaml_setup_files]].
4 On my Debian Squeeze system, attempting to build the wiki using the
5 YAML setup file triggers the following error message:
7         YAML::XS::Load Error: The problem:
9             Invalid trailing UTF-8 octet
11         was found at document: 0
12         usage: ikiwiki [options] source dest
13                ikiwiki --setup configfile
15 Indeed, my setup file contains UTF-8 characters.
17 Deinstalling YAML::XS ([[!debpkg libyaml-libyaml-perl]]) resolves this
18 issue. According to YAML::Any's POD, YAML::Syck is used instead of
19 YAML::XS in this case since it's the best YAML implementaion available
20 on my system.
22 No encoding-related setting is mentionned in YAML::XS' POD. We may
23 consider there is a bug in there. I'll see if it's known / fixed
24 somewhere as soon as I get online.
26 Joey, as a (hopefully) temporary workaround, what do you think of
27 explicitely using YAML::Syck (or whatever other YAML implementation
28 that does not expose this bug) rather than letting YAML::Any pick its
29 preferred one?