Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1DE06200C28 for ; Mon, 27 Feb 2017 02:55:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1C7EE160B78; Mon, 27 Feb 2017 01:55:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 66C9F160B6E for ; Mon, 27 Feb 2017 02:55:49 +0100 (CET) Received: (qmail 64791 invoked by uid 500); 27 Feb 2017 01:55:48 -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 64779 invoked by uid 99); 27 Feb 2017 01:55:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2017 01:55:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 260AFC13D1 for ; Mon, 27 Feb 2017 01:55:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.452 X-Spam-Level: * X-Spam-Status: No, score=1.452 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, LOTS_OF_MONEY=0.001, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3D_BfmMbR9hl for ; Mon, 27 Feb 2017 01:55:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 96B325F243 for ; Mon, 27 Feb 2017 01:55:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 844F0E031F for ; Mon, 27 Feb 2017 01:55:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3C8AF2412B for ; Mon, 27 Feb 2017 01:55:45 +0000 (UTC) Date: Mon, 27 Feb 2017 01:55:45 +0000 (UTC) From: "Rob Tompkins (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEXT-64) Investigate locale issue in ExtendedMessageFormatTest MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 27 Feb 2017 01:55:50 -0000 [ https://issues.apache.org/jira/browse/TEXT-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15885024#comment-15885024 ] Rob Tompkins commented on TEXT-64: ---------------------------------- I've been unable to reproduce this on my OS X 10.12.3 machine. But, that doesn't mean that such an issue doesn't exist. At first look it feels like {{NumberFormat.getAvailableLocales()}} is returning an array of length 0. I plan to pursue some further investigation to see what happens when I manufacture that outcome. > Investigate locale issue in ExtendedMessageFormatTest > ----------------------------------------------------- > > Key: TEXT-64 > URL: https://issues.apache.org/jira/browse/TEXT-64 > Project: Commons Text > Issue Type: Bug > Affects Versions: 1.0-beta-1 > Reporter: Rob Tompkins > Fix For: 1.0 > > > During release testing, Bruno found the following problem, needing investigation, (http://markmail.org/message/hhio4ye2xlvdznlv). > /* --- snip -- */ > Results : > {code} > Failed tests: > ExtendedMessageFormatTest.testBuiltInChoiceFormat:211->checkBuiltInFormat:336->checkBuiltInFormat:347->checkBuiltInFormat:376 > format Pattern=[1234.5: {0,choice,1#One|2#Two|3#Many {0,number}}], locale=[null] > expected:<1234.5: Many 1[.234,]5> but was:<1234.5: Many 1[,234.]5> > ExtendedMessageFormatTest.testBuiltInDateTimeFormat:230->checkBuiltInFormat:336->checkBuiltInFormat:347->checkBuiltInFormat:376 > format Pattern=[1: {0,date,short}], locale=[null] expected:<1: [23/01]/07> but > was:<1: [1/23]/07> > ExtendedMessageFormatTest.testBuiltInNumberFormat:277->checkBuiltInFormat:336->checkBuiltInFormat:347->checkBuiltInFormat:376 > format Pattern=[1: {0,number}], locale=[null] expected:<1: 6[.543,]21> but > was:<1: 6[,543.]21> > ExtendedMessageFormatTest.testExtendedAndBuiltInFormats:141 null expected: JOHN DOE DOB: [23/01/07 Salary: R$ 12.345,]67> but was: [1/23/07 Salary: $12,345.]67> > ExtendedMessageFormatTest.testOverriddenBuiltinFormat:253->checkBuiltInFormat:347->checkBuiltInFormat:376 > format Pattern=[1: {0,date}], locale=[null] expected:<1: [23/01/]2007> but > was:<1: [Jan 23, ]2007> > Tests run: 476, Failures: 5, Errors: 0, Skipped: 0 > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 11.385 s > [INFO] Finished at: 2017-02-06T14:07:52-02:00 > [INFO] Final Memory: 30M/328M > [INFO] ------------------------------------------------------------------------ > {code} > /* --- snip -- */ > Here's my env: > Apache Maven 3.3.9 > Maven home: /usr/share/maven > Java version: 1.8.0_111, vendor: Oracle Corporation > Java home: /usr/lib/jvm/java-8-oracle/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.4.0-59-generic", arch: "amd64", family: "unix" > Even though the JVM locale seems to be set to en_US, I'm in Brazil right now > with the time in Ubuntu set to local time, as well as the locale (or so I > think). Here's my output of running the `locale` command. > /* --- snip --- */ > $ locale > LANG=en_US.UTF-8 > LANGUAGE=en_US > LC_CTYPE=pt_BR.UTF-8 > LC_NUMERIC=pt_BR.UTF-8 > LC_TIME=pt_BR.UTF-8 > LC_COLLATE="en_US.UTF-8" > LC_MONETARY=pt_BR.UTF-8 > LC_MESSAGES="en_US.UTF-8" > LC_PAPER=pt_BR.UTF-8 > LC_NAME=pt_BR.UTF-8 > LC_ADDRESS=pt_BR.UTF-8 > LC_TELEPHONE=pt_BR.UTF-8 > LC_MEASUREMENT=pt_BR.UTF-8 > LC_IDENTIFICATION=pt_BR.UTF-8 > LC_ALL= > /* --- snip --- */ -- This message was sent by Atlassian JIRA (v6.3.15#6346)