commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Tompkins (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TEXT-64) Investigate locale issue in ExtendedMessageFormatTest
Date Sat, 11 Feb 2017 14:50:41 GMT
Rob Tompkins created TEXT-64:
--------------------------------

             Summary: 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


During release testing, Bruno found the following problem, needing investigation, (http://markmail.org/message/hhio4ye2xlvdznlv).

/* --- snip -- */

Results :

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:<Name:
JOHN DOE DOB: [23/01/07 Salary: R$ 12.345,]67> but was:<Name: JOHN DOE DOB:
[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] ------------------------------------------------------------------------
/* --- 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)

Mime
View raw message