This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
jankratochvil marked an inline comment as done.
Closed by commit rG72748488addd: [lldb] Fix editline unicode on Linux (authored
by jankratochvil).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105779/new/
https://reviews.llvm.org/D105779
Files:
lldb/source/Core/IOHandlerCursesGUI.cpp
lldb/tools/driver/Driver.cpp
Index: lldb/tools/driver/Driver.cpp
===================================================================
--- lldb/tools/driver/Driver.cpp
+++ lldb/tools/driver/Driver.cpp
@@ -31,6 +31,7 @@
#include <algorithm>
#include <atomic>
#include <bitset>
+#include <clocale>
#include <csignal>
#include <string>
#include <thread>
@@ -867,6 +868,10 @@
}
int main(int argc, char const *argv[]) {
+ // Editline uses for example iswprint which is dependent on LC_CTYPE.
+ std::setlocale(LC_ALL, "");
+ std::setlocale(LC_CTYPE, "");
+
// Setup LLVM signal handlers and make sure we call llvm_shutdown() on
// destruction.
llvm::InitLLVM IL(argc, argv, /*InstallPipeSignalExitHandler=*/false);
Index: lldb/source/Core/IOHandlerCursesGUI.cpp
===================================================================
--- lldb/source/Core/IOHandlerCursesGUI.cpp
+++ lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -67,7 +67,6 @@
#include <cassert>
#include <cctype>
#include <cerrno>
-#include <clocale>
#include <cstdint>
#include <cstdio>
#include <cstring>
@@ -2627,8 +2626,6 @@
}
void Initialize() {
- ::setlocale(LC_ALL, "");
- ::setlocale(LC_CTYPE, "");
m_screen = ::newterm(nullptr, m_out, m_in);
::start_color();
::curs_set(0);
Index: lldb/tools/driver/Driver.cpp
===================================================================
--- lldb/tools/driver/Driver.cpp
+++ lldb/tools/driver/Driver.cpp
@@ -31,6 +31,7 @@
#include <algorithm>
#include <atomic>
#include <bitset>
+#include <clocale>
#include <csignal>
#include <string>
#include <thread>
@@ -867,6 +868,10 @@
}
int main(int argc, char const *argv[]) {
+ // Editline uses for example iswprint which is dependent on LC_CTYPE.
+ std::setlocale(LC_ALL, "");
+ std::setlocale(LC_CTYPE, "");
+
// Setup LLVM signal handlers and make sure we call llvm_shutdown() on
// destruction.
llvm::InitLLVM IL(argc, argv, /*InstallPipeSignalExitHandler=*/false);
Index: lldb/source/Core/IOHandlerCursesGUI.cpp
===================================================================
--- lldb/source/Core/IOHandlerCursesGUI.cpp
+++ lldb/source/Core/IOHandlerCursesGUI.cpp
@@ -67,7 +67,6 @@
#include <cassert>
#include <cctype>
#include <cerrno>
-#include <clocale>
#include <cstdint>
#include <cstdio>
#include <cstring>
@@ -2627,8 +2626,6 @@
}
void Initialize() {
- ::setlocale(LC_ALL, "");
- ::setlocale(LC_CTYPE, "");
m_screen = ::newterm(nullptr, m_out, m_in);
::start_color();
::curs_set(0);
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits