Xianqiao Wang

Xianqiao Wang

Some records of life and study

  • Home

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

https://www.cyberciti.biz/faq/os-x-terminal-bash-warning-setlocale-lc_ctype-cannot-change-locale/

本地使用的语言环境和远端不支持造成。

  1. terminal 中取消勾选:‘Set locale environment variables on startup’
  2. ssh 配置文件中注释:SendEnv LANG LC_*
  3. Install required locale on the remote server
    # localedef -i en_US -f UTF-8 en_US.UTF-8 # ?

    Published by Xianqiao Wang on May 26th, 2018

    • Ssh
    • RSS

    © 2025 Xianqiao's Site.

    Design by Fabien Penso. Powered by Postach.io