JDK-8216154 : C4819 warnings at HotSpot sources on Windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,9,10,11,12,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-01-04
  • Updated: 2021-04-23
  • Resolved: 2019-01-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 8
11.0.8-oracleFixed 13 b03Fixed 8u301Fixed
Related Reports
Relates :  
Description
https://mail.openjdk.java.net/pipermail/build-dev/2019-January/024581.html

I tried to build OpenJDK on WSL (Windows 10 1809 + VS2017 (15.9.4) + Ubuntu 18.04 LTS).
However, I saw some C4819 warnings as below:

```
c:/OpenJDK/jdk/src/hotspot/share/compiler/methodMatcher.cpp(258): warning C4819: ������������������������������������ ��������� (0) ��������������������������������������������������������������������������������������������������������� Unicode ������������������������������������
```

* The locale of my laptop is set to Japanese (CP932)

I saw this warning at 2 files as below:

  - hotspot/share/code/codeHeapState.cpp
  - hotspot/share/compiler/methodMatcher.cpp

We can see the problem with iconv:
  $ iconv -f US-ASCII -t UTF8 <file>
Comments
jdk11 backport request I would like to have the patch in OpenJDK 11 as well because the issue is present there too. The patch applies cleanly.
07-05-2020

This is old code, adding corresponding affects versions. ILW = Build warnings due to character that can not be represented in the current locale, two files with Japanese locale on Windows, ignore/disable warnings = MML = P4
04-01-2019