1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

reduce macos locale warning to debug

closes: https://github.com/wez/wezterm/issues/2793
This commit is contained in:
Wez Furlong 2023-02-06 20:46:12 -07:00
parent 14cef3577b
commit f6d8b309c0
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387

View File

@ -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);