Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E0384FF8 for ; Mon, 20 Aug 2012 17:57:38 +0000 (UTC) Received: (qmail 49004 invoked by uid 500); 20 Aug 2012 17:57:38 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 48949 invoked by uid 500); 20 Aug 2012 17:57:38 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 48812 invoked by uid 99); 20 Aug 2012 17:57:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Aug 2012 17:57:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0EEBC2C5BF7 for ; Mon, 20 Aug 2012 17:57:38 +0000 (UTC) Date: Tue, 21 Aug 2012 04:57:38 +1100 (NCT) From: "Julian Reschke (JIRA)" To: oak-dev@jackrabbit.apache.org Message-ID: <1021314264.30833.1345485458061.JavaMail.jiratomcat@arcas> In-Reply-To: <162475688.29878.1345470638113.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (OAK-260) Avoid the "Turkish Locale Problem" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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