LoginSignup
17

More than 5 years have passed since last update.

git logで日本語が文字化けしたので対処

Posted at

意識が高まってMac (OSX 10.9.3) を英語表記で使うようにしたら、
tigコマンドでgitの変更履歴などを見るときなどに、日本語が文字化けするようになってしまった。

これは嫌なので対策。

.zshrc(.bashrc)に以下を追加。

export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8

一応これで回避可能。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
17