Skip to content

Conversation

asolntsev
Copy link
Contributor

For example, if the system default locale is Turkish ("tr_TR"), then ClipboardContentType.PLAINTEXT argument gets converted to "plaıntext", not "plaintext".

Change list

  1. Replace toLowerCase() -> toLowerCase(ROOT)
  2. Replace toUpperCase() -> toUpperCase(ROOT)

"ROOT" is a specific locale that at least works well for latin letters (that are used in content types, enum names etc.)

Types of changes

What types of changes are you proposing/introducing to Java client?
Put an x in the boxes that apply

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@mykola-mokhnach
Copy link
Contributor

Please address checkstyle issues

For example, if the system default locale is Turkish ("tr_TR"), then
`ClipboardContentType.PLAINTEXT` argument gets converted to "plaıntext", not "plaintext".

1. Replace `toLowerCase()` -> `toLowerCase(ROOT)`
2. Replace `toUpperCase()` -> `toUpperCase(ROOT)`

"ROOT" is a specific locale that at least works well for latin letters (that are used in content types, enum names etc.)
@asolntsev asolntsev force-pushed the fix/avoid-using-system-locale branch from af152e3 to 2378184 Compare October 3, 2025 07:40
@valfirst valfirst merged commit c9ac5a2 into appium:master Oct 3, 2025
7 checks passed
@asolntsev asolntsev deleted the fix/avoid-using-system-locale branch October 3, 2025 10:12
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.

4 participants