From: Emmanuel Bourg Date: Mon, 17 Jun 2024 22:19:01 +0200 Subject: Set the locale when generating the Javadoc to make the API documentation reproducible Forwarded: no --- src/tools/org/h2/build/BuildBase.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/org/h2/build/BuildBase.java b/src/tools/org/h2/build/BuildBase.java index fc64388..ff610e8 100644 --- a/src/tools/org/h2/build/BuildBase.java +++ b/src/tools/org/h2/build/BuildBase.java @@ -522,6 +522,10 @@ public void close() throws IOException { * @param args the command line arguments to pass */ protected void javadoc(String...args) { + StringList argumentList = args(args); + argumentList.addAll(0, Arrays.asList("-locale", "en", "-encoding", "UTF-8")); + args = argumentList.array(); + int result; PrintStream old = System.out; try {