mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Manuall call setlocale for pancurses backend
Once (if?) pancurses merges the corresponding PR[1], we can revert that. [1]: https://github.com/ihalila/pancurses/pull/78
This commit is contained in:
parent
64b68ed718
commit
e2f79776a4
@ -52,6 +52,11 @@ impl Backend {
|
||||
|
||||
::std::env::set_var("ESCDELAY", "25");
|
||||
|
||||
if cfg!(unix) {
|
||||
let buf = CString::new("").unwrap();
|
||||
unsafe { libc::setlocale(libc::LC_ALL, buf.as_ptr()) };
|
||||
}
|
||||
|
||||
// TODO: use pancurses::newterm()
|
||||
let window = pancurses::initscr();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user