Skip to content

Conversation

@charles-zablit charles-zablit requested a review from a team as a code owner December 16, 2025 12:18
@charles-zablit
Copy link
Author

@swift-ci please test

1 similar comment
@charles-zablit
Copy link
Author

@swift-ci please test

@charles-zablit charles-zablit force-pushed the charles-zablit/lldb/better-unicode-check-to-swift-release-6.3 branch from 20a971c to 754bc09 Compare December 16, 2025 13:05
@charles-zablit
Copy link
Author

@swift-ci please test

NFC patch which moves `DiagnosticsRendering` from `Utility` to `Host`.

This refactoring is needed for
llvm#168603. It adds a method to
check whether the current terminal supports Unicode or not. This will be
OS dependent and a better fit for `Host`. Since `Utility` cannot depend
on `Host`, `DiagnosticsRendering` must live in `Host` instead.

(cherry picked from commit 0c7d826)
…code (llvm#171832)

This patch improves the way lldb checks if the terminal it's opened in
(if any) supports Unicode or not.

On POSIX systems, we check if `LANG` contains `UTF-8`.

On Windows, we always return `true` since we use the `WriteToConsoleW`
api.

This is a relanding of llvm#168603.

The tests failed because the bots support Unicode but the tests expect
ASCII. To avoid different outputs depending on the environment the tests
are running in, this patch always force ASCII in the tests.

(cherry picked from commit 7345233)
…72038)

This patch fixes a test failure introduced by
llvm#171832 due to a check which
was not properly updated.

(cherry picked from commit 8515dda)
@charles-zablit charles-zablit force-pushed the charles-zablit/lldb/better-unicode-check-to-swift-release-6.3 branch from 754bc09 to a732608 Compare December 16, 2025 15:13
@charles-zablit
Copy link
Author

@swift-ci please test

@charles-zablit
Copy link
Author

@swift-ci please test macos

@adrian-prantl adrian-prantl merged commit 791b434 into swiftlang:swift/release/6.3 Dec 17, 2025
3 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