

warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or dire...
source link: https://ma.ttias.be/warning-setlocale-lc_ctype-cannot-change-locale-utf-8-no-such-file-or-directory/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Mattias Geniar, October 21, 2019
Follow me on Twitter as @mattiasgeniar
On a freshly installed CentOS 7 machine, I got the following notice when I SSH’d into the server.
warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
The fix is pretty straight-forward. On the server (not your client), edit the file /etc/environment
and add the following lines.
(You’ll need root privileges to do this)
$ cat /etc/environment LANG=en_US.utf-8 LC_ALL=en_US.utf-8
Log out & back in and you should notice the warning message is gone.
Want to subscribe to the cron.weekly newsletter?
I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.
It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.
No spam. Just some good, practical Linux & open source content.
Recommend
-
44
I am trying to install package and doing some other work. But, getting the error that read as “ perl: warning: Setting loc...
-
10
Currency internationalizationApril 22, 2020 · 2 min readMaksim SharipovMaintainer of eo-locale
-
11
PHP RFC: Locale-independent float to string cast Version: 1.0 Date: 2020-03-11
-
10
Open Bug 331779 Opened 15 years ago Updated 2 years ago
-
5
ubuntu 下设置 locale 报错 $ /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory $ /usr/b...
-
9
Fun with glibc and the ctype.h functions I got really bored tonight and went down some rabbit holes and turned up something from about a year ago. If you follow the latest Linux type stuff, you probably remember this, but if not,...
-
12
解决 Arch Linux(KDE Plasma)中 Locale LANG=C 的问题 2021-10-08 约 243 字 预计阅读 1 分钟 3 次阅读 最近在 Arch Linux 上的 Git 显示不了中文,执行了
-
7
How to Set Locale and Add-Type in Krayin? You can change language and time zone from the Krayin CRM configuration setting. Here I wil...
-
5
Changing the Locale in Chrome with Dev Tools Mar 09, 2022 When working on internationalized apps, it's important to test different locales to ensure that the design looks acceptable for a wide range...
-
5
This post will cover application failures with Node on App Service Linux - specifically regarding the 'node_modules.tar.gz: cannot open: no such file or directory' message. Prerequisites IMP...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK