Fix WinL10nTest test to use proper l10n string for picking up WiX version from 
jpackage output when it is invoked as a command and not as a tool provider. As 
a supplementary change, refactored test cases initialization.

The fix revealed a couple of issues in how the CommandOutputControl class 
handles encoding when saving the output of executed commands. All issues fixed 
with additional unit tests added to cover changes.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - CommandOutputControl: encoding bugfix
 - 8386609: WinL10nTest.java does not respect locale for WixType

Changes: https://git.openjdk.org/jdk/pull/31543/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31543&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8386609
  Stats: 208 lines in 4 files changed: 99 ins; 19 del; 90 mod
  Patch: https://git.openjdk.org/jdk/pull/31543.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31543/head:pull/31543

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

Reply via email to