IBM Support

IV21782: JAVA.IO.CONSOLE CLASS USES INCORRECT CONSOLE ENCODING ON ZOS WHE N FILE.ENCODING IS ASCII

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: N/A
    .
    When file encoding is specified as ASCII, the default console
    encoding used by java.io.Console class for console read and
    write operations is incorrect on zOS. The console encoding is
    not honoured even when the console encoding is explicitly
    specified using system property -Dconsole.encoding.
    

Local fix

Problem summary

  • java.io.Console class uses "file.encoding" value for read and
    write operations from/to console. Console output on zOS becomes
    garbled when "file.encoding" differs from platform's  console
    encoding.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.1 SR3
    6.0.0 SR11
    7.0.0 SR3
    .
    The JVM Console class is updated:
    1)To use platform's default encoding in case console encoding is
    not set.
    2)To honor the system property -Dconsole.encoding when it is
    specified.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV21782

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-05-25

  • Closed date

    2012-06-18

  • Last modified date

    2012-06-18

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

  • R700 PSY

       UP



Document information

More support for: Runtimes for Java Technology
Java Class Libraries

Software version: 6.0

Reference #: IV21782

Modified date: 18 June 2012