Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A3357FDF for ; Thu, 25 Aug 2011 09:49:10 +0000 (UTC) Received: (qmail 79218 invoked by uid 500); 25 Aug 2011 09:49:08 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 77925 invoked by uid 500); 25 Aug 2011 09:49:01 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 77612 invoked by uid 99); 25 Aug 2011 09:48:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 09:48:53 +0000 X-ASF-Spam-Status: No, hits=-2000.9 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2011 09:48:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5FAEACF477 for ; Thu, 25 Aug 2011 09:48:29 +0000 (UTC) Date: Thu, 25 Aug 2011 09:48:29 +0000 (UTC) From: "Pierre-Arnaud Marcelot (JIRA)" To: dev@directory.apache.org Message-ID: <863929206.12990.1314265709388.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1281554455.10975.1314221549513.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DIRSERVER-1646) Locale problem on startup (Apache DS 2.0.0-M2) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13090895#comment-13090895 ] Pierre-Arnaud Marcelot commented on DIRSERVER-1646: --------------------------------------------------- OK, I found the cause of the issue. This is due to the fact we're using the String.toLowerCase() method in various places and that as stated in its javadoc, it can cause issues with various locales and especially the Turkish locale. Here the specific note from the javadoc: --------------------------------------- Note: This method is locale sensitive, and may produce unexpected results if used for strings that are intended to be interpreted locale independently. Examples are programming language identifiers, protocol keys, and HTML tags. For instance, "TITLE".toLowerCase() in a Turkish locale returns "t\u0131tle", where '\u0131' is the LATIN SMALL LETTER DOTLESS I character. To obtain correct results for locale insensitive strings, use toLowerCase(Locale.ENGLISH). --------------------------------------- In our case 'I' characters get translated to lower dotless 'i', which is then causing a lot of issue in parts of code where we don't expect such a character. In order to fix that we need to verify our use of the String.toLowerCase() method and we might need to replace it by String..toLowerCase( Locale.ENGLISH ) as it is mentionned in the javadoc. > Locale problem on startup (Apache DS 2.0.0-M2) > ---------------------------------------------- > > Key: DIRSERVER-1646 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1646 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 2.0.0-M2 > Environment: Windows Vista Basic 32-bit on Asus X59SR Laptop; installed with the Windows installer; OS language is EN while the region is TR > Reporter: Deniz Acay > Assignee: Pierre-Arnaud Marcelot > Fix For: 2.0.0-M3 > > Attachments: apacheds.log, wrapper.log > > > Similar to DIRSERVER-1645, but no exception log was found and the startup failed immediately. Added these to wrapper.conf and the service could be started: > wrapper.java.additional.10=-Duser.language=en > wrapper.java.additional.11=-Duser.country=US -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira