fix: avoid using system default locale by asolntsev · Pull Request #2352 · appium/java-client

mykola-mokhnach

@asolntsev

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.)

valfirst

saikrishna321

@asolntsev asolntsev deleted the fix/avoid-using-system-locale branch

October 3, 2025 10:12