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

In Latvia first day of week is Monday

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6u21, 7
    • Fix Version/s: 8
    • Component/s: globalization
    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      x86, sparc
    • OS:
      solaris_10
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      In Latvia first day of the week is Monday.

      This bug is the same as in
      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4527203

      Most European countries, as first day of the week have Monday.

        Fix for this problem is easy:

      FormatData_lv_LV.java (sun.text.resources package) needs the following:

       { "DateTimeElements",
                      new String[] {
                          "2", // first day of week
                          "1" // min days in first week
                      }
                  }




      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile this:

      Calendar cal = Calendar.getInstance(new Locale("lv", "LV"));
      System.out.println("first day of the week: " + cal.getFirstDayOfWeek());
      System.out.println("Calendar Sunday: " + Calendar.SUNDAY);
      System.out.println("Calendar Monday: " + Calendar.MONDAY);


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Output of the code above:

      first day of the week: 2
      Calendar Sunday: 1
      Calendar Monday: 2
      ACTUAL -
      first day of the week: 1
      Calendar Sunday: 1
      Calendar Monday: 2

      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: