[ 
https://issues.apache.org/jira/browse/HADOOP-9236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14222989#comment-14222989
 ] 

Steve Loughran commented on HADOOP-9236:
----------------------------------------

what you are missing here is that the en local expects the I lower case to == 
"i", and is often used in things like arg checking, marshalling over the wire 
in json, etc, etc. It's not that the equality tests don't work in different 
locales —it is that they are different between locales.



> Use i18n-ized case comparisons in FileSystem
> --------------------------------------------
>
>                 Key: HADOOP-9236
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9236
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 2.0.2-alpha
>            Reporter: Steve Loughran
>            Priority: Trivial
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> {{FileSystem.checkPath()}} uses {{equalsIgnoreCase()}} when looking at URLs 
> -this can break in different countries -such as Turkey's handling of 
> {{"I".toLowerCase()}}. The comparisons should be done by converting the 
> strings to lower case in {{EN_US}} first.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to