Coffee Break Point

Cannot set LC_XXX to default locale: No such file or directoryを解決する

vimを開いたら言語設定?が壊れていた。

前にも直した記憶があるが、しょっちゅう壊れる系なのか?

何度も調べたくないので今回対応した方法を記録する。


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 $ locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C C.utf8 POSIX ja_JP.utf8 $ localt zsh: correct 'localt' to 'local' [nyae]? n zsh: command not found: localt $ localectl list-locales C.UTF-8 ja_JP.UTF-8 $ sudo localedef -f UTF-8 -i en_US en_US.UTF-8 $ localectl list-locales C.UTF-8 en_US.UTF-8 ja_JP.UTF-8 $ locale LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=en_US.UTF-8


← Back to home

©from-garage 2022 All Rights Reserved.

powered by