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指定する必要もなかったのでコメントアウトし解決。