Skip to content

Conversation

marco-saia-datadog
Copy link
Member

@marco-saia-datadog marco-saia-datadog commented Oct 13, 2025

What does this PR do?

This PR updates all lowerCase() calls in the Android layer to explicitly specify a locale (using lowerCase(Locale.US)).

Motivation

Kotlin's lowerCase() function is locale-sensitive. Without specifying a locale, it uses the system's default settings.

This can lead to incorrect string conversions in certain locales, such as Turkish, where the lowercase form of "I" differs ("INFO".lowerCase() becomes "ınfo" instead of "info").

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@marco-saia-datadog marco-saia-datadog marked this pull request as ready for review October 13, 2025 09:10
@marco-saia-datadog marco-saia-datadog requested a review from a team as a code owner October 13, 2025 09:10
Copy link
Contributor

@sbarrio sbarrio left a comment

Choose a reason for hiding this comment

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

Nice catch 🤖

@marco-saia-datadog
Copy link
Member Author

Nice catch 🤖

Thanks to @0xnm 💡

@marco-saia-datadog marco-saia-datadog merged commit ab28ef8 into develop Oct 13, 2025
10 checks passed
@marco-saia-datadog marco-saia-datadog deleted the marcosaia/fix/string-lowercase-locale branch October 13, 2025 09:27
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.

3 participants