Skip to content

Commit

Permalink
Merge branch '2.5.x' into 2.6.x
Browse files Browse the repository at this point in the history
Closes gh-30541
  • Loading branch information
mhalbritter committed Apr 5, 2022
2 parents bf3c2d7 + 18c62e2 commit 53b2c85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -267,6 +267,7 @@ protected void prepareContext(Host host, ServletContextInitializer[] initializer
private void resetDefaultLocaleMapping(TomcatEmbeddedContext context) {
context.addLocaleEncodingMappingParameter(Locale.ENGLISH.toString(), DEFAULT_CHARSET.displayName());
context.addLocaleEncodingMappingParameter(Locale.FRENCH.toString(), DEFAULT_CHARSET.displayName());
context.addLocaleEncodingMappingParameter(Locale.JAPANESE.toString(), DEFAULT_CHARSET.displayName());
}

private void addLocaleMappings(TomcatEmbeddedContext context) {
Expand Down
Expand Up @@ -411,6 +411,7 @@ void defaultLocaleCharsetMappingsAreOverridden() {
// override defaults, see org.apache.catalina.util.CharsetMapperDefault.properties
assertThat(getCharset(Locale.ENGLISH)).isEqualTo(StandardCharsets.UTF_8);
assertThat(getCharset(Locale.FRENCH)).isEqualTo(StandardCharsets.UTF_8);
assertThat(getCharset(Locale.JAPANESE)).isEqualTo(StandardCharsets.UTF_8);
}

@Test
Expand Down

0 comments on commit 53b2c85

Please sign in to comment.