Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 66939 invoked from network); 23 Aug 2009 09:52:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Aug 2009 09:52:02 -0000 Received: (qmail 68114 invoked by uid 500); 23 Aug 2009 09:52:23 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 68014 invoked by uid 500); 23 Aug 2009 09:52:23 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 68006 invoked by uid 99); 23 Aug 2009 09:52:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 09:52:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Aug 2009 09:52:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 44570234C004 for ; Sun, 23 Aug 2009 02:51:59 -0700 (PDT) Message-ID: <1652207842.1251021119271.JavaMail.jira@brutus> Date: Sun, 23 Aug 2009 02:51:59 -0700 (PDT) From: "Uwe Schindler (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Issue Comment Edited: (LUCENE-1846) More Locale problems in Lucene In-Reply-To: <719373302.1251020759260.JavaMail.jira@brutus> 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/LUCENE-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746579#action_12746579 ] Uwe Schindler edited comment on LUCENE-1846 at 8/23/09 2:51 AM: ---------------------------------------------------------------- Patch. The changes in DateTools may affect users with very strange default locales that indexed with prior Lucene versions, but this is unlikely a problem, as the whole sorting may be broken already. Should I add a note to CHANGES.txt? was (Author: thetaphi): Patch. The changes in DateField may affect users with very strange default locales that indexed with prior Lucene versions, but this is unlikely a problem, as the whole sorting may be broken already. Should I add a note to CHANGES.txt? > More Locale problems in Lucene > ------------------------------ > > Key: LUCENE-1846 > URL: https://issues.apache.org/jira/browse/LUCENE-1846 > Project: Lucene - Java > Issue Type: Bug > Components: Other > Reporter: Uwe Schindler > Assignee: Uwe Schindler > Priority: Trivial > Fix For: 2.9 > > Attachments: LUCENE-1846.patch > > > This is a followup to LUCENE-1836: I found some more Locale problems in Lucene with Date Formats. Even for simple date formats only consisting of numbers (like ISO dates), you should always give the US locale. Because the dates in DateTools should sort according to String.compare(), it is important, that the decimal digits are western ones. In some strange locales, this may be different. Whenever you want to format dates for internal formats you exspect to behave somehow, you should at least set the locale to US, which uses ASCII. Dates entered by users and displayed to users, should be formatted according to the default or a custom specified locale. > I also looked for DecimalFormat (especially used for padding numbers), but found no problems. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org