We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef86159 commit 85933dcCopy full SHA for 85933dc
src/os.rs
@@ -115,7 +115,10 @@ fn unix_lang() -> Result<String> {
115
Error::new(kind, e)
116
})
117
};
118
- let langs = check_var("LANGS").or_else(|_| check_var("LANG"))?;
+ let langs = check_var("LC_ALL")
119
+ .or_else(|_| check_var("LANGS"))
120
+ .or_else(|_| check_var("LANG"))
121
+ .or_else(|_| check_var("LANGUAGE"))?;
122
123
if langs.is_empty() {
124
return Err(err_empty_record());
0 commit comments