Skip to content

Conversation

@charles-zablit
Copy link

…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 59f107c)
@charles-zablit charles-zablit requested a review from a team as a code owner December 15, 2025 19:05
@charles-zablit
Copy link
Author

@swift-ci please test

@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 deleted the charles-zablit/lldb/better-unicode-check-to-swift-release-6.3 branch December 18, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant