Skip to content

Conversation

@lorban
Copy link
Contributor

@lorban lorban commented Nov 28, 2025

This avoids any encoding when configuring the JVM with an obscure locale like -Duser.language=az.

Fixes #14097

…ng when configuring the JVM with an obscure locale like -Duser.language=az

Signed-off-by: Ludovic Orban <[email protected]>
@lorban lorban requested a review from joakime November 28, 2025 12:03
@lorban lorban self-assigned this Nov 28, 2025
@lorban lorban added the Bug For general bugs on Jetty side label Nov 28, 2025
@lorban lorban moved this to 👀 In review in Jetty 12.1.5 Nov 28, 2025
Copy link
Contributor

@sbordet sbordet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really start using Locale.ROOT, but approved.

@lorban lorban merged commit c9153ab into jetty-12.1.x Dec 1, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Jetty 12.1.5 Dec 1, 2025
@lorban lorban deleted the fix/12.1.x/14097-toLowerCase-locale branch December 1, 2025 08:43
@dsmiley
Copy link

dsmiley commented Dec 1, 2025

I recommended Locale.ROOT in my original issue. Was ENGLISH explicitly chosen instead for some reason?

@joakime
Copy link
Contributor

joakime commented Dec 1, 2025

I recommended Locale.ROOT in my original issue. Was ENGLISH explicitly chosen instead for some reason?

No reason other than being consistent with existing code...

@lorban
Copy link
Contributor Author

lorban commented Dec 1, 2025

@dsmiley as @joakime said, this is just for being consistent with existing code. But as @sbordet noted (and @gregw ack'ed) we should start using Locale.ROOT.

We should, we will, but not today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug For general bugs on Jetty side

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Can't use Jetty when the default Locale is Azerbaijan

7 participants