netliomax25-code opened a new pull request, #2588: URL: https://github.com/apache/groovy/pull/2588
MarkdownSlurper.parse decodes InputStream and Path input through a plain InputStreamReader, so it picks up Charset.defaultCharset() instead of UTF-8. On a JVM whose default isn't UTF-8 this looks like it would corrupt any multibyte content in an otherwise valid UTF-8 document. The sibling YamlSlurper, TomlSlurper, CsvSlurper and JsonSlurper already default stream input to UTF-8, so this passes StandardCharsets.UTF_8 at both reader sites to match. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
