mirror of
https://github.com/wez/wezterm.git
synced 2024-12-23 05:12:40 +03:00
reduce macos locale warning to debug
closes: https://github.com/wez/wezterm/issues/2793
This commit is contained in:
parent
14cef3577b
commit
f6d8b309c0
@ -123,7 +123,7 @@ pub fn set_lang_from_locale() {
|
||||
if !libc::setlocale(libc::LC_CTYPE, candidate_cstr.as_ptr()).is_null() {
|
||||
std::env::set_var("LANG", &candidate);
|
||||
} else {
|
||||
log::warn!("setlocale({}) failed, fall back to en_US.UTF-8", candidate);
|
||||
log::debug!("setlocale({}) failed, fall back to en_US.UTF-8", candidate);
|
||||
std::env::set_var("LANG", "en_US.UTF-8");
|
||||
}
|
||||
libc::setlocale(libc::LC_CTYPE, old);
|
||||
|
Loading…
Reference in New Issue
Block a user