On Fri, 1 Aug 2025 12:34:15 GMT, Brett Okken <d...@openjdk.org> wrote:

> As suggested on mailing list, when encoding latin1 bytes to utf-8, we can 
> count the leading positive bytes and in the case where there is a negative, 
> we can copy all the positive values to the target byte[] prior to processing 
> the remaining data 1 byte at a time.
> 
> https://mail.openjdk.org/pipermail/core-libs-dev/2025-July/149417.html

This pull request has now been integrated.

Changeset: 3bbaa772
Author:    Brett Okken <brett.ok...@oracle.com>
Committer: Roger Riggs <rri...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/3bbaa772b0bb94694940156ec0ce421f87f02be7
Stats:     9 lines in 1 file changed: 6 ins; 1 del; 2 mod

8364320: String encodeUTF8 latin1 with negatives

Reviewed-by: liach, rriggs

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

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

Reply via email to