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:
Alexandre Bury 2020-08-25 23:09:53 -07:00
parent 64b68ed718
commit e2f79776a4

View File

@ -52,6 +52,11 @@ impl Backend {
::std::env::set_var("ESCDELAY", "25"); ::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() // TODO: use pancurses::newterm()
let window = pancurses::initscr(); let window = pancurses::initscr();