8000 gex command fails when LANG=ja_JP.UTF-8 (maybe other non-english locales as well) · Issue #7 · Piturnah/gex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
gex command fails when LANG=ja_JP.UTF-8 (maybe other non-english locales as well) #7
Closed
@oshikiri

Description

@oshikiri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0