Skip to content

Ensure macOS logging uses UTF-8 #214

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

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 17, 2024 20:29
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
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight merged commit 6e51652 into swiftlang:main Jul 18, 2024
3 checks passed
@hamishknight hamishknight deleted the log-encoding branch July 18, 2024 08:56
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