Skip to content

Commit f8c5465

Browse files
committed
Merge branch '2.6.x' into 2.7.x
Closes gh-30542
2 parents ef79a18 + 53b2c85 commit f8c5465

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ protected void prepareContext(Host host, ServletContextInitializer[] initializer
267267
private void resetDefaultLocaleMapping(TomcatEmbeddedContext context) {
268268
context.addLocaleEncodingMappingParameter(Locale.ENGLISH.toString(), DEFAULT_CHARSET.displayName());
269269
context.addLocaleEncodingMappingParameter(Locale.FRENCH.toString(), DEFAULT_CHARSET.displayName());
270+
context.addLocaleEncodingMappingParameter(Locale.JAPANESE.toString(), DEFAULT_CHARSET.displayName());
270271
}
271272

272273
private void addLocaleMappings(TomcatEmbeddedContext context) {

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/tomcat/TomcatServletWebServerFactoryTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ void defaultLocaleCharsetMappingsAreOverridden() {
410410
// override defaults, see org.apache.catalina.util.CharsetMapperDefault.properties
411411
assertThat(getCharset(Locale.ENGLISH)).isEqualTo(StandardCharsets.UTF_8);
412412
assertThat(getCharset(Locale.FRENCH)).isEqualTo(StandardCharsets.UTF_8);
413+
assertThat(getCharset(Locale.JAPANESE)).isEqualTo(StandardCharsets.UTF_8);
413414
}
414415

415416
@Test

0 commit comments

Comments
 (0)