RFR: 8255239: The timezone of the hs_err_pid log file is corrupted in Japanese locale

Calvin Cheung ccheung at openjdk.java.net
Tue Nov 3 00:07:01 UTC 2020


Please review this simple fix by using the wide char version of strftime, i.e. wcsftime, to convert the timezone into a wide character string. After that, converting the wide character string back to multi-byte string before printing out the time and timezone.

Testing: ran the test case in the bug report manually on:

- Windows with ja, zh-tw, and en locales;

- Linux and Mac OS with en locale.

-------------

Commit messages:
 - 8255239 (initial commit)

Changes: https://git.openjdk.java.net/jdk/pull/1023/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1023&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8255239
  Stats: 8 lines in 1 file changed: 6 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1023.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1023/head:pull/1023

PR: https://git.openjdk.java.net/jdk/pull/1023


More information about the hotspot-runtime-dev mailing list