LoginSignup
4
4

More than 5 years have passed since last update.

存在しないLANGを設定してしまった場合の見慣れないエラーに遭遇した。

Posted at

OSを入れ直して 自分が作った shellscript を実行した時以下エラーが出た。

エラー抜粋
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
a.sh
LANG=ja_JP.UTF-8

shellscript内に書いてあるこれが原因だった。
locale -aするとja_JP.UTF-8はまだ存在しなかった。(en_US.UTF-8ならある)
LANG指定する必要もなかったのでコメントアウトし解決。

4
4
0

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
4
4