Skip to content
Snippets Groups Projects
Commit a26e3ed5 authored by Sean Owen's avatar Sean Owen
Browse files

[SPARK-20156][CORE][SQL][STREAMING][MLLIB] Java String toLowerCase "Turkish...

[SPARK-20156][CORE][SQL][STREAMING][MLLIB] Java String toLowerCase "Turkish locale bug" causes Spark problems

## What changes were proposed in this pull request?

Add Locale.ROOT to internal calls to String `toLowerCase`, `toUpperCase`, to avoid inadvertent locale-sensitive variation in behavior (aka the "Turkish locale problem").

The change looks large but it is just adding `Locale.ROOT` (the locale with no country or language specified) to every call to these methods.

## How was this patch tested?

Existing tests.

Author: Sean Owen <sowen@cloudera.com>

Closes #17527 from srowen/SPARK-20156.
parent fd711ea1
No related branches found
No related tags found
No related merge requests found
Showing
with 55 additions and 36 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment