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

Default Locale NOT being set from "non-Unicode programs" setting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6u16
    • core-libs

      FULL PRODUCT VERSION :
      java version "1.6.0_16"
      Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
      Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Using French keyboard, French(France) Regional options, Location=France, Language for menus and dialogs=English, non-Unicode program language set to English (United States)

      A DESCRIPTION OF THE PROBLEM :
      With those settings internationalized java apps ALWAYS display French NOT English.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Set up the Regional and Language options as above, run an internationalized Java program.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      GUI in English (as stated on http://java.com/en/download/help/locale.xml)
      ACTUAL -
      GUI in French

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      In fact there are two answers I found - the WRONG one presented by
      http://java.com/en/download/help/locale.xml and the hack one that works.

      I'll explain - I use a French-installed multi-language XP in France with
      a French keyboard - but I want my apps to speak to me in English. The
      page at Sun plain does not work with that combination - Java still talks
      to me in French.

      The HACK solution was to go into regedit and change

      HKEY_CURRENT_USER\Control Panel\International\Locale

      from 0000040C to 00000409. That made Java talk English.

      Going back to the regional settings control panel tool, I noticed that
      this, in fact, had changed the name in the "Regional Options" drop down,
      while keeping all the French formatting for numbers dates etc.

      So Java does NOT get its default LOCALE
      from the settings on the Advanced page, but from the settings on the
      Regional Options page - and THEY are very tough to change without screwing
      up ALL those options (i.e. you can't easily just change the language and
      leave the number/date/etc formatting as is).

            naoto Naoto Sato
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: