Skip to content

8353698: Output of Simple Web Server is garbled if the console's encoding is not UTF-8 #1981

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

Open
wants to merge 1 commit into
base: pr/1980
Choose a base branch
from

Conversation

kurashige23
Copy link
Member

@kurashige23 kurashige23 commented Jul 16, 2025

Hi,

This is a backport of JDK-8353698: Output of Simple Web Server is garbled if the console's encoding is not UTF-8

Original patch applies cleanly to 21u.
This PR depends on #1980. So #1980 shoud be integrated first.

Testing: test/jdk/com/sun/net/httpserver/simpleserver passes on Japanese Windows and English Windows.

Thanks.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8353698 needs maintainer approval

Integration blocker

 ⚠️ Dependency #1980 must be integrated first

Issue

  • JDK-8353698: Output of Simple Web Server is garbled if the console's encoding is not UTF-8 (Bug - P4 - Requested)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/1981/head:pull/1981
$ git checkout pull/1981

Update a local copy of the PR:
$ git checkout pull/1981
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/1981/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1981

View PR using the GUI difftool:
$ git pr show -t 1981

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/1981.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 16, 2025

👋 Welcome back tkurashige! A progress list of the required criteria for merging this PR into pr/1980 will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jul 16, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport f7fa05f577a28870202ccaa3544c34b58bd4adfe 8353698: Output of Simple Web Server is garbled if the console's encoding is not UTF-8 Jul 16, 2025
@openjdk
Copy link

openjdk bot commented Jul 16, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review labels Jul 16, 2025
@mlbridge
Copy link

mlbridge bot commented Jul 16, 2025

Webrevs

@kurashige23
Copy link
Member Author

/approval request Backporting this patch eliminates the problem that output of Simple Web Server is garbled if the console's encoding is not UTF-8.
This backport includes bug fix and test fix.
Risk is low: affect encoding of Simple Web Server output and fix tests
test/jdk/com/sun/net/httpserver/simpleserver passes on Japanese Windows and English Windows.
Clean backport.

@openjdk
Copy link

openjdk bot commented Jul 16, 2025

@kurashige23
8353698: The approval request has been created successfully.

@openjdk openjdk bot added the approval Requires approval; will be removed when approval is received label Jul 16, 2025
@GoeLin
Copy link
Member

GoeLin commented Jul 17, 2025

Hi @kurashige23
I tried to run this through our testing. It does not apply though.
The patch to test/jdk/com/sun/net/httpserver/simpleserver/jwebserver/IPv6BoundHost.java
is the problem. Could you please merge head?

@kurashige23
Copy link
Member Author

kurashige23 commented Jul 18, 2025

Hi @GoeLin

This PR has dependent PR #1980, so I created this PR against pr/1980 branch according to "What to do with changes depending on each other?" in https://wiki.openjdk.org/display/JDKUpdates/How+to+contribute+or+backport+a+fix .

IPv6BoundHost.java was added in #1980.
I think #1980 shoud be integrated first.

Sorry for forgetting refering to dependent fix in Fix Request.

Thanks.

@kurashige23
Copy link
Member Author

/approval request Backporting this patch eliminates the problem that output of Simple Web Server is garbled if the console's encoding is not UTF-8.
This backport includes bug fix and test fix and depends on JDK-8332020.
Risk is low: affect encoding of Simple Web Server output and fix tests
test/jdk/com/sun/net/httpserver/simpleserver passes on Japanese Windows and English Windows.
Clean backport.

@openjdk
Copy link

openjdk bot commented Jul 18, 2025

@kurashige23
8353698: The approval request has been updated successfully.

@GoeLin
Copy link
Member

GoeLin commented Jul 18, 2025

Hi @kurashige23
ah, I missed that. Ok, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approval Requires approval; will be removed when approval is received backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants