0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

LC_TYPEがうんたら言われる

Posted at

CentOS7のロケールの話。sshで接続とかするとのっけから

 -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

とかって言われる。でもlocaleを叩いてみると

# locale
 LANG=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"

いや〜ちゃんとできてるんですが...

解決策

/etc/environmentが空だったので、以下を追加してみた

/etc/environment
 LC_CTYPE=en_US.utf-8

んでrebootして再度sshで接続すると、表示が消えました。Yay:)

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?