Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDAP-182 Localization and charset definitions are done. #42

Merged
merged 4 commits into from
Aug 6, 2019
Merged

SDAP-182 Localization and charset definitions are done. #42

merged 4 commits into from
Aug 6, 2019

Conversation

kamaci
Copy link
Member

@kamaci kamaci commented Feb 13, 2019

No description provided.

@lewismc
Copy link
Member

lewismc commented Feb 13, 2019

@kamaci is there an advantage of using Locale.ROOT? Over say Locate.getDefault()...?

@asfgit
Copy link

asfgit commented Feb 13, 2019

Can one of the admins verify this patch?

@kamaci
Copy link
Member Author

kamaci commented Feb 13, 2019

About Locale.ROOT:

Useful constant for the root locale. The root locale is the locale whose language, country, and variant are empty ("") strings. This is regarded as the base locale of all locales, and is used as the language/country neutral locale for the locale sensitive operations.

About Locale.getDefault(), it may cause weird problems i.e.: https://issues.apache.org/jira/browse/HADOOP-11507

@kamaci
Copy link
Member Author

kamaci commented Feb 24, 2019

On the other hand, it may result in weird situations if default locale of the machine which runs the code is any other Locale than English i.e.: apache/druid#7120

@lewismc
Copy link
Member

lewismc commented Mar 6, 2019

@kamaci do you want to update this PR?

@kamaci
Copy link
Member Author

kamaci commented Aug 4, 2019

@lewismc I've updated my PR.

By the way, I can replace Locale.ROOT with Locale.ENGLISH: https://stackoverflow.com/questions/10336730/which-locale-should-i-specify-when-i-call-string-tolowercase ?

@lewismc
Copy link
Member

lewismc commented Aug 6, 2019

@kamaci yes if you could replace with Locale.ENGLISH I think it would be preferred at this point.

@kamaci
Copy link
Member Author

kamaci commented Aug 6, 2019

@kamaci yes if you could replace with Locale.ENGLISH I think it would be preferred at this point.

@lewismc I've updated my PR.

@lewismc lewismc merged commit 54b7780 into apache:master Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants