[Lldb-commits] [lldb] [windows][lldb] force the console to use a UTF-8 codepage (PR #149493)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 18 03:39:18 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp lldb/source/Plugins/Platform/Windows/PlatformWindows.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
index d3e981de8..dffbbc1c2 100644
--- a/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
+++ b/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
@@ -816,15 +816,15 @@ extern "C" {
}
void PlatformWindows::SetConsoleCodePage() {
- #if defined(_WIN32)
- g_prev_console_cp = GetConsoleOutputCP();
- SetConsoleOutputCP(CP_UTF8);
- #endif
+#if defined(_WIN32)
+ g_prev_console_cp = GetConsoleOutputCP();
+ SetConsoleOutputCP(CP_UTF8);
+#endif
}
void PlatformWindows::ResetConsoleCodePage() {
- #if defined(_WIN32)
+#if defined(_WIN32)
if (g_prev_console_cp)
SetConsoleOutputCP(*g_prev_console_cp);
- #endif
+#endif
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/149493
More information about the lldb-commits
mailing list