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

Elizabeth Thomas commented on HADOOP-9236:
------------------------------------------

[[email protected]], I find that the URL comparisons (in particular 
equalsIgnoreCase) works fine even with Turkey locale set. 
Please find below the test I used to verify the same.

{code}
@Test
  public void testResolvePathForTurkishLocale() throws Exception {
        Locale trLocale = Locale.forLanguageTag("tr-TR");       
        Locale.setDefault(trLocale);            
        String test = "FILE";
        System.out.println(test.toLowerCase());
        assertTrue(test.equalsIgnoreCase(test.toLowerCase()));          
  }
{code}

The test case executed successfully and the Output from the test was "fıle" (i 
without dot)

Am I missing something here? Pls provide your pointers.
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to