tags 589875 patch kthxbye This patch causes libxslt1.1 to output an encoding declaration whenever it outputs an XML declaration. It also has the side effect of applying to the html and text output methods. This should not be a problem; the text method specifies that the default encoding is system-dependent, and UTF-8 is a fine default for that.
If you'd like a patch that only applies to the xml output method, I can do that. -- brian m. carlson / brian with sandals: Houston, Texas, US +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
diff -ur libxslt.old/libxslt/transform.c libxslt-1.1.26/libxslt/transform.c --- libxslt.old/libxslt/transform.c 2010-07-21 20:07:59.000000000 +0000 +++ libxslt-1.1.26/libxslt/transform.c 2010-07-21 20:28:19.000000000 +0000 @@ -6012,6 +6012,8 @@ res->charset = XML_CHAR_ENCODING_UTF8; if (encoding != NULL) res->encoding = xmlStrdup(encoding); + else + res->encoding = xmlStrdup("UTF-8"); variables = style->variables; /*
signature.asc
Description: Digital signature