Commit 8b8f676
committed
fix: pass XML_PARSE_UNZIP for SAX file parsing on libxml2 >= 2.14
libxml2 2.15.0 removed the automatic enabling of XML_PARSE_UNZIP in
xmlCreateFileParserCtxt, so compressed file parsing silently fails
unless the caller explicitly requests decompression.
Use xmlCreateURLParserCtxt with XML_PARSE_UNZIP on libxml2 >= 2.14
(when the flag was introduced). On older versions, fall back to
xmlCreateFileParserCtxt which auto-decompresses.
This also removes the Windows-specific test workaround for the same
issue.1 parent 3b2f7b9 commit 8b8f676
File tree
2 files changed
+4
-1
lines changed- ext/nokogiri
- test/xml/sax
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
0 commit comments