You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2012/08/20 15:50:38 UTC

[jira] [Created] (OAK-260) Avoid the "Turkish Locale Problem"

Thomas Mueller created OAK-260:
----------------------------------

             Summary: Avoid the "Turkish Locale Problem"
                 Key: OAK-260
                 URL: https://issues.apache.org/jira/browse/OAK-260
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Thomas Mueller


We currently use String.toUpperCase() and String.toLowerCase() and in some cases where it is not appropriate. When running using the Turkish profile, this will not work as expected. See also 

http://mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug

Problematic are String.toUpperCase(), String.toLowerCase(). String.equalsIgnoreCase(..) isn't a problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OAK-260) Avoid the "Turkish Locale Problem"

Posted by "Thomas Mueller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437877#comment-13437877 ] 

Thomas Mueller commented on OAK-260:
------------------------------------

The main problems should be fixed in r1375026, r1375028, and r1375030. However, we should have a way to ensure no new such bugs are introduced. One option is to run the test case using the Turkish locale, another might be to configure Checkstyle to detect such problems.
                
> Avoid the "Turkish Locale Problem"
> ----------------------------------
>
>                 Key: OAK-260
>                 URL: https://issues.apache.org/jira/browse/OAK-260
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Thomas Mueller
>
> We currently use String.toUpperCase() and String.toLowerCase() and in some cases where it is not appropriate. When running using the Turkish profile, this will not work as expected. See also 
> http://mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug
> Problematic are String.toUpperCase(), String.toLowerCase(). String.equalsIgnoreCase(..) isn't a problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (OAK-260) Avoid the "Turkish Locale Problem"

Posted by "Julian Reschke (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OAK-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438038#comment-13438038 ] 

Julian Reschke commented on OAK-260:
------------------------------------

For the record, the contract for equalsIgnoreCase:

  http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html#equalsIgnoreCase%28java.lang.String%29

This may do the right thing for the Turkish locale, but I'm not totally convinced it couldn't fail with other fancy locales. It's probably better to always specify the locale.
                
> Avoid the "Turkish Locale Problem"
> ----------------------------------
>
>                 Key: OAK-260
>                 URL: https://issues.apache.org/jira/browse/OAK-260
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Thomas Mueller
>
> We currently use String.toUpperCase() and String.toLowerCase() and in some cases where it is not appropriate. When running using the Turkish profile, this will not work as expected. See also 
> http://mattryall.net/blog/2009/02/the-infamous-turkish-locale-bug
> Problematic are String.toUpperCase(), String.toLowerCase(). String.equalsIgnoreCase(..) isn't a problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira