Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-89

DatePatternToRegexTest fails when run with Polish locale

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • None
    • None
    • logback-core
    • None
    • Windows XP SP3, Polish

    Description

      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.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            nurkiewicz Tomasz Nurkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: