Skip to content

Use explicit locale for string operations in cloud module#35920

Merged
arnej27959 merged 1 commit intomasterfrom
arnej/locale-2-cloud
Feb 13, 2026
Merged

Use explicit locale for string operations in cloud module#35920
arnej27959 merged 1 commit intomasterfrom
arnej/locale-2-cloud

Conversation

@arnej27959
Copy link
Member

Replace platform-dependent string operations with explicit locale-independent alternatives to avoid bugs when running on systems with different defaults:

  • Use StandardCharsets.UTF_8 for byte array to string conversions
  • Replace String.formatted() with String.format(Locale.ROOT, ...)
  • Use Locale.ROOT for DateTimeFormatter patterns

Replace platform-dependent string operations with explicit locale-independent
alternatives to avoid bugs when running on systems with different defaults:
- Use StandardCharsets.UTF_8 for byte array to string conversions
- Replace String.formatted() with String.format(Locale.ROOT, ...)
- Use Locale.ROOT for DateTimeFormatter patterns
@arnej27959 arnej27959 requested a review from hmusum February 13, 2026 15:16
@arnej27959 arnej27959 merged commit 6de3f97 into master Feb 13, 2026
3 checks passed
@arnej27959 arnej27959 deleted the arnej/locale-2-cloud branch February 13, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants