henrikruscon / hyper-statusline

Status Line Plugin for Hyper
MIT License
386 stars 79 forks source link

japanese dir name is displayed unicode characters #93

Closed ergofriend closed 3 years ago

ergofriend commented 4 years ago

dir name

n_ネットワーク論3

displayed

\xe3\x83\x8d\xe3\x83\x83\xe3\x83\x88\xe3\x83\xaf\xe3\x83\xbc\xe3\x82\xaf\xe8\xab\x963

image

EliasGcf commented 3 years ago

I have the same issue.

Any solution?

EliasGcf commented 3 years ago

I FIND THE SOLUTION

exec(
    `lsof -p ${pid} | awk '$4=="cwd"' | tr -s ' ' | cut -d ' ' -f9-`,
    { env: { ...process.env, LANG: 'pt_BR.UTF-8' } },
    (err, stdout) => {
    cwd = stdout.trim();
    setGit(cwd);
    },
);

You can edit the LANG to your language unicode. (http://itdoc.hitachi.co.jp/manuals/3021/3021335500e/PCAU0074.HTM)

Thanks, @birobirobiro, for your collaboration.