エラー内容
macで以下のコマンドを打った時にエラー
$ gcloud compute scp --recurse ./hoge/* hogeserver:/etc/hoge
/etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
解決方法
サーバー側の /etc/environment を開いて
vi /etc/environment
cannot change locale (UTF-8)
と言われているので、以下を記述
LANG=UTF-8
参考
https://stackoverflow.com/questions/22430747/locale-error-in-centos
https://akamist.com/blog/archives/665