Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update com.ibm.autocvt to default to true unless file.encoding is set #19924

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

joransiu
Copy link
Member

The z/OS specific com.ibm.autocvt property should default to true only if the file.encoding property is unset. If file.encoding is set to a specific charset or COMPAT, then we disable auto conversion to retain the same behaviour as JDK17 and earlier releases.

@joransiu
Copy link
Member Author

joransiu commented Jul 26, 2024

Here are the results of the tests:

$ java -XshowSettings:properties -version 2>&1 | grep autocvt
    com.ibm.autocvt = true

$ java -XshowSettings:properties -Dfile.encoding=IBM-1047 -version 2>&1 | grep autocvt
    com.ibm.autocvt = false

$ java -XshowSettings:properties -Dfile.encoding=UTF-8 -version 2>&1 | grep autocvt
    com.ibm.autocvt = false

$  java -XshowSettings:properties -Dfile.encoding=UTF-8 -Dcom.ibm.autocvt=true -version 2>&1 | grep autocvt
    com.ibm.autocvt = true

$ java -XshowSettings:properties -Dfile.encoding=COMPAT -version 2>&1 | grep autocvt
    com.ibm.autocvt = false

z/OS Build: [Build_JDK21_s390x_zos_Personal/1133]

Copy link
Contributor

@keithc-ca keithc-ca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the commit message to avoid lines longer than 72 characters.

@joransiu
Copy link
Member Author

Please update the commit message to avoid lines longer than 72 characters.

Updated. Thanks.

The z/OS specific com.ibm.autocvt property should default to true only
if the file.encoding property is unset. If file.encoding is set to a
specific charset or COMPAT, then we disable auto conversion to retain
the same behaviour as JDK17 and earlier releases.

Signed-off-by: Joran Siu <[email protected]>
@keithc-ca
Copy link
Contributor

This only affects z/OS for which we have no PR testing.

@keithc-ca keithc-ca merged commit 487b005 into eclipse-openj9:master Jul 26, 2024
2 checks passed
@joransiu joransiu deleted the autocvt-default branch July 28, 2024 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants