logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remko Popma (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LOG4J2-1268) FixedDateFormat is incorrect for formats having MMM with the French locale
Date Fri, 12 Feb 2016 14:22:18 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Remko Popma resolved LOG4J2-1268.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.6

Thanks for the report!

I was able to reproduce the problem by running the existing unit test with {{-Duser.language=fr
-Duser.country=FR}}.

Fixed in master in commits d86a215 and 6216d98.
Please verify and close.

> FixedDateFormat is incorrect for formats having MMM with the French locale
> --------------------------------------------------------------------------
>
>                 Key: LOG4J2-1268
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1268
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.6
>         Environment: French Windows 10, Java 8
>            Reporter: Ludovic HOCHET
>            Assignee: Remko Popma
>             Fix For: 2.6
>
>
> While verifying LOG4J2-920 I came across the following tests failures in Core:
> FixedDateFormatTest.testFormatLong:147 DATE/1455054137029 expected:<09 févr. 201[6
]22:42:17,029> but was:<09 févr. 201[]22:42:17,029>
> FixedDateFormatTest.testFormatLongCharArrayInt:181 DATE/1455054136333 expected:<09
févr. 201[6 ]22:42:16,333> but was:<09 févr. 201[]22:42:16,333>
> FixedDateFormatTest.testFormatLongCharArrayInt_goingBackInTime:199 DATE/1455234136907
expected:<12 févr. 201[6 ]00:42:16,907> but was:<12 févr. 201[]00:42:16,907>
> FixedDateFormatTest.testFormatLong_goingBackInTime:163 DATE/1455234136722 expected:<12
févr. 201[6 ]00:42:16,722> but was:<12 févr. 201[]00:42:16,722>
> Looking at the code the implementation of FixedDateFormat/FixedFormat expect the size
of the pattern MMM (for shot months) to be 3 characters, which in French at least isn't the
case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message