Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21672DCE9 for ; Thu, 3 Jan 2013 02:14:13 +0000 (UTC) Received: (qmail 95295 invoked by uid 500); 3 Jan 2013 02:14:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95201 invoked by uid 500); 3 Jan 2013 02:14:12 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 95191 invoked by uid 99); 3 Jan 2013 02:14:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 02:14:12 +0000 Date: Thu, 3 Jan 2013 02:14:12 +0000 (UTC) From: "Endre Jeges (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-865) LocaleUtils.toLocale does not parse strings starting with an underbar 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/LANG-865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Endre Jeges updated LANG-865: ----------------------------- Attachment: (was: LANG-865.patch) > LocaleUtils.toLocale does not parse strings starting with an underbar > --------------------------------------------------------------------- > > Key: LANG-865 > URL: https://issues.apache.org/jira/browse/LANG-865 > Project: Commons Lang > Issue Type: Bug > Components: lang.* > Affects Versions: 3.1 > Reporter: Endre Jeges > Labels: patch > Fix For: 3.2 > > Attachments: LANG-865.patch > > Original Estimate: 3h > Remaining Estimate: 3h > > Hi, > Javadocs of Locale.toString() states that "If the language is missing, the string will begin with an underbar.". This is not handled in the LocaleUtils.toLocale method if it is meant to be the inversion method of Locale.toString(). > The fix for the ticket 328 does not handle well the case "fr__P", which I found out during fixing the first bug. > I am attaching the patch for both problems. -- 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