Integrated: 8301971: Make JDK source code UTF-8
Magnus Ihse Bursie
ihse at openjdk.org
Fri May 9 09:09:03 UTC 2025
On Thu, 10 Apr 2025 14:28:02 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> Most of the JDK code base has been transitioned to UTF-8, but not all. This has recently become an acute problem, since our mixing of iso-8859-1 and utf-8 in properties files confused the version of `sed` that is shipped with the new macOS 15.4.
>
> The fix is basically simple, and includes the following steps:
> * Look through the code base for text files containing non-ASCII characters, and convert them to UTF-8, if they are not already
> * Update tooling used in building to recognize the fact that files are now in UTF-8 and treat them accordingly (basically, updating compiler flags, git attributes, etc).
This pull request has now been integrated.
Changeset: 3aa2ea7e
Author: Magnus Ihse Bursie <ihse at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3aa2ea7e67c879dafa0f967073c2d8b98d62c996
Stats: 177 lines in 13 files changed: 49 ins; 105 del; 23 mod
8301971: Make JDK source code UTF-8
8338973: Document need to have UTF-8 locale available to build the JDK
Reviewed-by: erikj, naoto, mbaesken
-------------
PR: https://git.openjdk.org/jdk/pull/24574
More information about the build-dev
mailing list