Skip to content

Conversation

@charles-zablit
Copy link

@charles-zablit charles-zablit requested a review from a team as a code owner August 19, 2025 14:10
@charles-zablit
Copy link
Author

@swift-ci please test

@charles-zablit
Copy link
Author

Let's wait until llvm#149493 (comment) is resolved.

This is a relanding of llvm#149493.
The tests were failing because we were interpreting a proper file
descriptor as a console file descriptor.

This patch uses the Windows APIs to print to the Windows Console,
through `llvm::raw_fd_ostream`.

This fixes a rendering issue where the characters defined in
`DiagnosticsRendering.cpp` ("╰" for instance) are not rendered properly
on Windows out of the box, because the default codepage is not `utf-8`.

This solution is based on [this patch
downstream](https://github.com/swiftlang/swift/pull/40632/files#diff-e948e4bd7a601e3ca82d596058ccb39326459a4751470eec4d393adeaf516977R37-R38).

rdar://156064500
@charles-zablit charles-zablit force-pushed the charles-zablit/lldb/fix-unicode-support-windows-to-6.2 branch from ab3bf80 to 92fa9d6 Compare September 3, 2025 12:29
@charles-zablit
Copy link
Author

@swift-ci please test

@charles-zablit
Copy link
Author

@swift-ci please test macOS

@charles-zablit
Copy link
Author

@swift-ci please test windows

@charles-zablit
Copy link
Author

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