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

keytool does not read values in the console encoding

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      The system locale is 日本語 (日本) which means ja-JP

      A DESCRIPTION OF THE PROBLEM :
      Any input value to keytool from the console seems to be treated as UTF-8.
      When "でよろしいですか。 [いいえ]: " is prompted, "いいえ" is not accepted.
      I think this is because the input value encoded in windows-31j is treated as UTF-8.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. run keytool -importcert -file jgrootca.cer -cacerts
         jgrootca.cer can be found at https://www.gpki.go.jp/jgca/jgrootca.cer
      2. answer いいえ

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      print 証明書がキーストアに追加されませんでした then exit
      ACTUAL -
      応答が間違っています。もう一度実行してください is printed and ask to input again

      CUSTOMER SUBMITTED WORKAROUND :
      Windows Settings > Time & language > Language & region > Administrative language settings > Change system locale, and check Beta: Use Unicode UTF-8 for worldwide language support

      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: