[Lldb-commits] [lldb] [lldb] improve the heuristics for checking if a terminal supports Unicode (PR #171832)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 11 08:35:51 PST 2025


================
@@ -400,6 +400,22 @@ llvm::Error Terminal::SetHardwareFlowControl(bool enabled) {
 #endif // LLDB_ENABLE_TERMIOS
 }
 
+bool Terminal::SupportsUnicode() {
+  static std::optional<bool> g_result;
----------------
slydiman wrote:

It seems you don't need g_result on Windows at all. Just move it after #else

https://github.com/llvm/llvm-project/pull/171832


More information about the lldb-commits mailing list