mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 01:39:02 +00:00
The charset "default" is an alias for US-ASCII, not the JVM's default charset. This commit updates the built-in Logback configuration to use Charset.defaultCharset().name() in place of "default" in the Java-based configuration. In the XML-based configuration where Charset.defaultCharset().name() cannot be called, we emulate its behaviour [1] by using the file.encoding system property, falling back to UTF-8 when it's not set. Fixes gh-27230 [1] https://github.com/openjdk/jdk8u/blob/19be6113dd0f658f950583b751284961d8ce0458/jdk/src/share/classes/java/nio/charset/Charset.java#L604-L617