mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Use libc::setlocale for ncurses backend
This commit is contained in:
parent
049919b609
commit
64b68ed718
@ -87,7 +87,8 @@ impl Backend {
|
||||
|
||||
// Change the locale.
|
||||
// For some reasons it's mandatory to get some UTF-8 support.
|
||||
ncurses::setlocale(ncurses::LcCategory::all, "");
|
||||
let buf = CString::new("").unwrap();
|
||||
unsafe { libc::setlocale(libc::LC_ALL, buf.as_ptr()) };
|
||||
|
||||
// The delay is the time ncurses wait after pressing ESC
|
||||
// to see if it's an escape sequence.
|
||||
|
Loading…
Reference in New Issue
Block a user