Skip to content

Commit 87a01c3

Browse files
committed
set LANG=en_US.UTF-8 for all TmcCommands
1 parent aa99dc8 commit 87a01c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tmc-langs-framework/src/command.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl TmcCommand {
4040
/// Creates a new command
4141
pub fn new(cmd: impl AsRef<OsStr>) -> Self {
4242
Self {
43-
exec: Exec::cmd(cmd),
43+
exec: Exec::cmd(cmd).env("LANG", "en_US.UTF-8"),
4444
stdout: None,
4545
stderr: None,
4646
}
@@ -53,7 +53,8 @@ impl TmcCommand {
5353
Ok(Self {
5454
exec: Exec::cmd(cmd)
5555
.stdout(stdout.try_clone().map_err(FileIo::FileHandleClone)?)
56-
.stderr(stderr.try_clone().map_err(FileIo::FileHandleClone)?),
56+
.stderr(stderr.try_clone().map_err(FileIo::FileHandleClone)?)
57+
.env("LANG", "en_US.UTF-8"),
5758
stdout: Some(stdout),
5859
stderr: Some(stderr),
5960
})

0 commit comments

Comments
 (0)