[logback-dev] [JIRA] Resolved: (LBCORE-144) DatePatternToRegexTest fails when run with Polish locale

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Wed Mar 17 20:14:16 CET 2010


     [ http://jira.qos.ch/browse/LBCORE-144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ceki Gulcu resolved LBCORE-144.
-------------------------------

    Fix Version/s: 0.9.19
       Resolution: Fixed

Thank you for reporting this bug Thomasz. The problem has been fixed in 
  http://github.com/ceki/logback/commit/1acd46c45fe2439


> DatePatternToRegexTest fails when run with Polish locale
> --------------------------------------------------------
>
>                 Key: LBCORE-144
>                 URL: http://jira.qos.ch/browse/LBCORE-144
>             Project: logback-core
>          Issue Type: Bug
>          Components: Rolling
>    Affects Versions: 0.9.18
>         Environment: Windows XP SP3, Polish
>            Reporter: Tomasz Nurkiewicz
>            Assignee: Logback dev list
>            Priority: Trivial
>             Fix For: 0.9.19
>
>
> When ch.qos.logback.core.rolling.helper.DatePatternToRegexTest runs with Polish locale (pl_PL), dayInWeek test fails:
> java.lang.AssertionError: [2009-wrz-Cz] does not match regex [\d{4}-.*-.{3,12}]
> 	at org.junit.Assert.fail(Assert.java:74)
> 	at org.junit.Assert.assertTrue(Assert.java:37)
> 	at ch.qos.logback.core.rolling.helper.DatePatternToRegexTest.verify(DatePatternToRegexTest.java:98)
> 	at ch.qos.logback.core.rolling.helper.DatePatternToRegexTest.doTest(DatePatternToRegexTest.java:82)
> 	at ch.qos.logback.core.rolling.helper.DatePatternToRegexTest.doTest(DatePatternToRegexTest.java:86)
> 	at ch.qos.logback.core.rolling.helper.DatePatternToRegexTest.dayInWeek(DatePatternToRegexTest.java:67)
> Where "wrz" stands for "wrzesień" (Polish for September) and "Cz" for "Czwartek" (Thursday). "Cz" does not match '{3,12}' pattern produced by ch.qos.logback.core.rolling.helper.SequenceToRegex4SDF#toRegex method.
> To reproduce use: -Duser.language=pl -Duser.region=PL JVM params.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


More information about the logback-dev mailing list