Fix macOS Terminal Error: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

When we remote login server with the help of Terminal from macOSAfter SSH AuthenticationHappen to receive next error message:

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

lc_ctype-error

The error is not serious and is not returned by the server to which we authenticated. It is returned by macOS, which tries to change the variables encoding server to which we connected.

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

In application Terminal, going to Preferences > Profiles > Advanced

exchange-terminal-settings

At the bottom of the tab "Advanced", Uncheck option"Local environment variables set on startup".
Close the application completely Terminal, then reopen for the setting to be applied.

Passionate about technology, I enjoy writing on StealthSettings.com since 2006. I have a rich experience in operating systems: macOS, Windows, and Linux, as well as in programming languages and blogging platforms (WordPress) and for online stores (WooCommerce, Magento, PrestaShop).

How to » iHowTo » iHowTo - macOS » Fix macOS Terminal Error: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Leave a Comment