1 # libxml2 has a problem when a document encoding is specified, even though
2 # documentation says that all internal representation would be in UTF-8 and
3 # language-subtag-registry data already is passed in UTF-8, when specifying the
4 # document encoding to be UTF-8 the output to language-subtag-registry.xml is
5 # conversion garbage, '?' on Linux UTF-8 locale, ISO-8859-1 on Windows. If no
6 # document encoding is specified at all no conversion happens and non-ASCII
7 # values are correctly written as entities.
9 --- misc/liblangtag-0.4.0/data/reg2xml.c 2012-01-30 13:20:57.000000000 +0100
10 +++ misc/build/liblangtag-0.4.0/data/reg2xml.c 2012-08-11 02:30:39.147779753 +0200
14 doc = xmlNewDoc((const xmlChar *)"1.0");
15 - doc->encoding = xmlStrdup((const xmlChar *)"UTF-8");
16 root = xmlNewDocNode(doc, NULL,
17 (const xmlChar *)"registry",