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

"Keytool" doesn't work with French locale(fr_FR)

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      rc
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: rmT116609 Date: 04/15/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Mandrake Linux release 8.1 (Vitamin) for i586.
      Linux kernel: 2.4.17-20mdk.
      Glibc package: glibc-2.2.4-6mdk.

      Redhat 7.1(Seawolf)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      The locale is set to French. In my system, LC_ALL is set to fr_FR.
      Setting it to fr_FR@euro also reproduces the bug.

      DESCRIPTION OF THE PROBLEM :
      The keytool executable does not work with French locale, even on the file
      "cacerts" provided in the distribution of SDK.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. cd to {J2SDK_install_path}/jre/lib/security
      2. set locale to French: type in LC_ALL=fr_FR
      3. run the following command: {J2SDK_install_path}/bin/keytool -list -storetype JKS -keystore cacerts

      The password is "changeit".


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      I was expecting the following output (i.e. list of certificates in cacert file):
      Enter keystore password: changeit

      Keystore type: JKS
      Keystore provider: SUN

      Your keystore contains 10 entries

      thawtepersonalfreemailca, Feb 12, 1999, trustedCertEntry,
      Certificate fingerprint (MD5): 1E:74:C3:86:3C:0C:35:C5:3E:C2:7F:EF:3C:AA:3C:D9
      thawtepersonalbasicca, Feb 12, 1999, trustedCertEntry,
      Certificate fingerprint (MD5): E6:0B:D2:C9:CA:2D:88:DB:1A:71:0E:4B:78:EB:02:41
      verisignclass3ca, Jun 29, 1998, trustedCertEntry,
      Certificate fingerprint (MD5): 78:2A:02:DF:DB:2E:14:D5:A7:5F:0A:DF:B6:8E:9C:5D
      thawtepersonalpremiumca, Feb 12, 1999, trustedCertEntry,
      Certificate fingerprint (MD5): 3A:B2:DE:22:9A:20:93:49:F9:ED:C8:D2:8A:E7:68:0D
      thawteserverca, Feb 12, 1999, trustedCertEntry,
      Certificate fingerprint (MD5): C5:70:C4:A2:ED:53:78:0C:C8:10:53:81:64:CB:D0:1D
      verisignclass4ca, Jun 29, 1998, trustedCertEntry,
      Certificate fingerprint (MD5): 1B:D1:AD:17:8B:7F:22:13:24:F5:26:E2:5D:4E:B9:10
      verisignserverca, Jun 29, 1998, trustedCertEntry,
      Certificate fingerprint (MD5): 74:7B:82:03:43:F0:00:9E:6B:B3:EC:47:BF:85:A5:93
      verisignclass1ca, Jun 29, 1998, trustedCertEntry,
      Certificate fingerprint (MD5): 51:86:E8:1F:BC:B1:C3:71:B5:18:10:DB:5F:DC:F6:20
      thawtepremiumserverca, Feb 12, 1999, trustedCertEntry,
      Certificate fingerprint (MD5): 06:9F:69:79:16:66:90:02:1B:8C:8C:A2:C3:07:6F:3A
      verisignclass2ca, Jun 29, 1998, trustedCertEntry,
      Certificate fingerprint (MD5): EC:40:7D:2B:76:52:67:05:2C:EA:F2:3A:4F:65:F0:D8

      but instead, I got this:

      $ cd /usr/java/j2sdk1.4.0/jre/lib/security
      $ keytool -list -keystore cacerts
      Tapez le mot de passe du Keystore : changeit

      Type Keystore : jks
      Fournisseur Keystore : SUN

      erreur keytool : java.lang.IllegalArgumentException: unknown format type at


      This worked with J2SE 1.3.1_03.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      erreur keytool : java.lang.IllegalArgumentException: unknown format type at


      This bug can be reproduced always.

      CUSTOMER WORKAROUND :
      Setting the locale to English (by typing: LC_ALL=en_US) Use an older version of keytool that ignores the locale setting
      (Review ID: 145385)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcolfersunw Kieran Colfer (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: