Skip to content

[6.0] Ensure macOS logging uses UTF-8 #215

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

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

hamishknight
Copy link
Contributor

6.0 cherry-pick of #214

  • Explanation: Fixes macOS logging to support UTF-8
  • Scope: Affects logging on macOS
  • Issue: rdar://131747774
  • Risk: Low, only affects logging
  • Testing: Verified locally
  • Reviewer: Ben Barham

Previously we were using `NSLog`'s `%s` specifier,
but that uses the default system encoding instead of
UTF-8. Convert to NSString to ensure we can handle UTF-8
log messages.

rdar://131747774
@hamishknight hamishknight requested a review from bnbarham as a code owner July 18, 2024 09:12
@hamishknight hamishknight merged commit f4d7f08 into swiftlang:release/6.0 Jul 18, 2024
@hamishknight hamishknight deleted the log-encoding-6.0 branch July 18, 2024 16:11
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