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 aa99dc8 commit 87a01c3Copy full SHA for 87a01c3
tmc-langs-framework/src/command.rs
@@ -40,7 +40,7 @@ impl TmcCommand {
40
/// Creates a new command
41
pub fn new(cmd: impl AsRef<OsStr>) -> Self {
42
Self {
43
- exec: Exec::cmd(cmd),
+ exec: Exec::cmd(cmd).env("LANG", "en_US.UTF-8"),
44
stdout: None,
45
stderr: None,
46
}
@@ -53,7 +53,8 @@ impl TmcCommand {
53
Ok(Self {
54
exec: Exec::cmd(cmd)
55
.stdout(stdout.try_clone().map_err(FileIo::FileHandleClone)?)
56
- .stderr(stderr.try_clone().map_err(FileIo::FileHandleClone)?),
+ .stderr(stderr.try_clone().map_err(FileIo::FileHandleClone)?)
57
+ .env("LANG", "en_US.UTF-8"),
58
stdout: Some(stdout),
59
stderr: Some(stderr),
60
})
0 commit comments