]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/yaml_setup_file_does_not_support_UTF-8_if_XS_is_installed.mdwn
a0dad177be8eacc4e59510dbd5902057eb970432
[ikiwiki.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]].
3
4 On my Debian Squeeze system, attempting to build the wiki using the
5 YAML setup file triggers the following error message:
6
7         YAML::XS::Load Error: The problem:
8
9             Invalid trailing UTF-8 octet
10
11         was found at document: 0
12         usage: ikiwiki [options] source dest
13                ikiwiki --setup configfile
14
15 Indeed, my setup file contains UTF-8 characters.
16
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.
21
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.
25
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?
30
31 --[[intrigeri]]
32
33 > Upgrading YAML::XS ([[!debpkg libyaml-libyaml-perl]]) to current sid
34 > version (0.34-1) fixes this bug for me. --[[intrigeri]]