Closed
Description
Hi, I usually launch emacs only for magit, so I am interested in gex
gex
command fails when the locale is non-English:
$ gex --version
gex 0.3.2
$ echo $LANG
ja_JP.UTF-8
$ gex
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error(Error { input: "ブランチ master", code: Tag })', /home/<username>/.cargo/registry/src/github.com-1ecc6299db9ec823/gex-0.3.2/src/status.rs:307:34
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ LANG=en_US gex
# it works
It may be because git status
's result changes depending on locale:
$ LANG=en_US git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
$ echo $LANG
ja_JP.UTF-8
$ git status
ブランチ master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
(ブランチ
means "branch" in japanese)
and gex uses git status
at https://github.com/Piturnah/gex/blob/v0.3.2/src/status.rs#L299-L307