RFR: 8261920: [AIX] jshell command throws java.io.IOError on non English locales
Thomas Stuefe
stuefe at openjdk.java.net
Wed Feb 24 13:08:40 UTC 2021
On Thu, 18 Feb 2021 03:56:25 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:
> jshell uses JLine library.
> JLine checks word "columns" in "stty -a" command output to find out terminal size.
> The word "columns" was translated on AIX's Japanese locale (other locales also), so above error was happened.
>
> OpenJDK for AIX developer could not find this issue because he/she requires AIX Toolbox's coreutils rpm package as build tools.
> Another stty command is in /opt/freeware/bin/stty, it's in coreutils rpm package.
>
> Standard users' system may not have coreutils rpm package or they may not set /opt/freeware/bin in PATH environment variable.
> stty command should be executed with C locale to get English message.
> Additionally, JLine library requires -F option. AIX's stty command does not support -F option,
> but stty command which is in coreutils rpm package supports -F option.
> On standard jshell usage, -F option may not be used. But when the system has coreutils rpm package, jshell should use this one.
Thanks! I'm fine with this change then.
-------------
Marked as reviewed by stuefe (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/2622
More information about the kulla-dev
mailing list