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

Clarify Console.charset() method description

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 17, 25
    • core-libs
    • master
    • generic
    • generic

      In JDK24, the spec of the method reads:
      ```
      The returned charset corresponds to the input and output source (e.g., keyboard and/or display) specified by the host environment or user, which defaults to the one based on stdout.encoding. It may not necessarily be the same as the default charset returned from Charset.defaultCharset().
      ```
      It reads "The returned charset corresponds to the input and output source", but it only relies on `stdout.encoding`. Needs some clarification here

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: