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

Default Encoding provides wrong result for single character

    XMLWordPrintable

Details

    Description

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Solaris/Linux,

      A DESCRIPTION OF THE PROBLEM :
      FULL PRODUCT VERSION :
      java version "1.4.2_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
      Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

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

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Using English version of Windows.
      Default locale is "en"


      A DESCRIPTION OF THE PROBLEM :
      Enclosed program does round-trip conversion of a string from default encoding to SJIS, and then back. When "ABC" is processed it correctly comes back as "ABC". When a single character string is processed, it comes back as an empty string.




      REGRESSION. Last worked in version 8u121


      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

      Attachments

        Issue Links

          Activity

            People

              pardesha Pardeep Sharma
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: