Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6990363

JDK Latvian locale first day of the week is Monday

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      GregorianCalendar.getFirstDayOfWeek() for Latvian locale returns Sunday as first day of the week - should be Monday as per ISO8601 which is adopted across all European countries.

      Seems that problem with (a way) earlier opened bug 4527203 is still there for all "small" European countries, including Latvia.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Locale.setDefault(new Locale("lv", "LV"));
              GregorianCalendar gc = new GregorianCalendar();
              int firstday = gc.getFirstDayOfWeek();

              if (firstday == Calendar.MONDAY) {
                  System.out.println("The first day is MONDAY");
              }

              if (firstday == Calendar.SUNDAY) {
                  System.out.println("The first day is SUNDAY");
              }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      first day of the week in Latvia is MONDAY

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yhuang Yong Huang (Inactive)
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: