JDK-8183182 : Default Encoding provides wrong result for single character
  • Type: Bug
  • Status: Closed
  • Resolution: Incomplete
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Priority: P3
  • Affected Version: 8u131
  • OS: solaris_10
  • CPU: x86_64
  • Submit Date: 2017-06-28
  • Updated Date: 2017-09-21
  • Resolved Date: 2017-09-21
Related Reports
Duplicate :  
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


Comments
We didn't received any further detail from the submitter with respect to newer version, however considering the minimal information provided is similar to jdk-6196991, closing this as incomplete.
2017-08-11

Update from submitter: ================== "The information is the synchronization for a deployment capacity that will be processed, in conversion, with a single string or with several, for the access to the tool in JDK, as well for windows or salaries, Linux or OS X". We didn't get the suggested test case, however, based upon provided information in the report description (reported against 1.4.2_01), it seems to be a duplicate of JDK-6196991 Likely to be closed as a duplicate, sent a response to the submitter requesting status with current versions.
2017-07-11

There is not enough information for us to evaluate this issue. Therefore, written back to the submitter requesting additional information for us to process this better.
2017-06-29