Use libc for setlocale() to fix non-ASCII (#256)

* Use libc for setlocale() to fix non-ASCII

character printing.
https://github.com/hrkfdn/ncspot/issues/221

* move string instantiation outside unsafe block

update libc crate while at it

Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
This commit is contained in:
pin
2020-08-29 11:27:47 +02:00
committed by GitHub
parent 6f7b64c908
commit b5e718f5f6
3 changed files with 60 additions and 54 deletions

View File

@@ -43,6 +43,7 @@ clipboard = { version = "0.5", optional = true }
url = "1.7"
strum = "0.17.1"
strum_macros = "0.17.1"
libc = "0.2"
[dependencies.cursive]
version = "0.15"