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

When we remote login server with the help of Port 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 Port, going to Preferences > Forfiles > Advanced

change-Terminal-settings

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

Passionate about technology, I like to test and write tutorials about operating systems macOS, Linux, Windows, about WordPress, WooCommerce and LEMP web server configuration (Linux, NGINX, MySQL and PHP). I write on StealthSettings.com since 2006, and a few years later I started writing on iHowTo.Tips tutorials and news about devices in the ecosystem Apple: iPhone, iPad, Apple Watch, HomePod, iMac, MacBook, AirPods and accessories.

Leave a Comment