RFR: 8290471: jpackage: allow to specify codepage on Windows

Alex Kasko akasko at openjdk.org
Mon Jul 18 22:38:45 UTC 2022


It is proposed to introduce support for `--win-codepage` argument, and substitute the `Codepage` attribute with `--win-codepage` specified value in primary l10n file when it is being copied to the config dir.

Instead of copying all internal l10n files, it is proposed to copy only the primary file. Plain copy is used if `--win-codepage` is not specified. Otherwise `--win-codepage` value is substituted in l10n file using DOM and XPath.

See more details in issue description and in links added there.

Testing:

 - [x] ran `jtreg:jdk/tools/jpackage`
 - [x] test for `--win-codepage` argument is included with the patch

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

Commit messages:
 - jpackage: allow to specify codepage on Windows

Changes: https://git.openjdk.org/jdk/pull/9546/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9546&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8290471
  Stats: 158 lines in 8 files changed: 151 ins; 6 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/9546.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9546/head:pull/9546

PR: https://git.openjdk.org/jdk/pull/9546


More information about the core-libs-dev mailing list