Skip to content

Conversation

@Catfish-Man
Copy link
Contributor

(cherry picked from commit ea7c3d4)

Explanation:
Due to an oversight the Foundation tests were run against the OS stdlib when testing a previous fix, so missed that I accidentally changed the semantics of this method from "byte count" to "code point count". This fixes it and adds stdlib tests so we don't have to rely on Foundation's tests.

Resolves: rdar://156675395

Risk: Low. Trivial changes, verified with a new test

Main branch PR: #83334

Review by: @jrflat, @glessard

Testing: new test for this method, verified using the old implementation

(cherry picked from commit ea7c3d4)
@Catfish-Man Catfish-Man requested a review from a team as a code owner July 25, 2025 19:31
@Catfish-Man
Copy link
Contributor Author

@swift-ci please test

@Catfish-Man Catfish-Man changed the title Fix lengthOfBytes(using:) semantics [6.2] Fix lengthOfBytes(using:) semantics Jul 25, 2025
@Catfish-Man Catfish-Man enabled auto-merge (squash) July 25, 2025 19:33
@Catfish-Man Catfish-Man merged commit 215620a into swiftlang:release/6.2 Jul 26, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants