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 1101310572 for ; Wed, 16 Oct 2013 14:31:50 +0000 (UTC) Received: (qmail 42877 invoked by uid 500); 16 Oct 2013 14:31:45 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 42539 invoked by uid 500); 16 Oct 2013 14:31:44 -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 42233 invoked by uid 99); 16 Oct 2013 14:31:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 14:31:43 +0000 Date: Wed, 16 Oct 2013 14:31:43 +0000 (UTC) From: =?utf-8?Q?Sergio_Fern=C3=A1ndez_=28JIRA=29?= To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LANG-915) Wrong locale handling in LocaleUtils.toLocale() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-915?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Sergio Fern=C3=A1ndez updated LANG-915: ---------------------------------- Attachment: LANG-915-test.patch Sure. Please, find attached a patch for the test suite that arises the issu= e. Later I'd try to provide a patch for the issue itself, since a quick look i= s not enough because the current code implements a very cryptic algorithm w= ith too many magic numbers in it > Wrong locale handling in LocaleUtils.toLocale() > ----------------------------------------------- > > Key: LANG-915 > URL: https://issues.apache.org/jira/browse/LANG-915 > Project: Commons Lang > Issue Type: Bug > Affects Versions: 3.1 > Reporter: Sergio Fern=C3=A1ndez > Priority: Minor > Fix For: Patch Needed > > Attachments: LANG-915-test.patch > > > The static method LocaleUtils.toLocale() fails, at least, to parse 3-char= locale strings, which are completelly valid BCP47 locales. -- This message was sent by Atlassian JIRA (v6.1#6144)