Somehow your locale is set to "en_CH". This locale is for English as spoken in Switzerland, but on your system, that isn't a valid locale. Generally, locales also contain a character set to use, such as the "UTF-8" in "en_US.UTF-8", which is also absent here.
It's likely that something in your shell configuration is setting these values, because macOS typically does not set these specific values; instead, it sets the LANG
environment variable, and it always uses UTF-8 locales. You should check either your .bashrc
and .bash_profile
settings or possibly your .zshenv
, .zshrc
, and .zprofile
settings and change any LANG
, LC_ALL
, or other LC_*
variable you may have set.
As a note, I'm not aware of any system that has an en_CH locale; typically there will only be locales for languages that are commonly spoken in the country or region (often, but not always, official languages). For example, while there are certainly many speakers of French in the United States, systems typically do not provide an fr_US.UTF-8 locale, because there are not enough speakers to have established norms for localization. You may need to pick another English locale, such as "en_GB.UTF-8" or "en_US.UTF-8" that is close enough for your needs, or set individual "LC" variables depending on which settings you want to pick and chooise.
en_DE
. Exporting in.bash_profile
/.zshrc
as answered by @ecjb is the correct solution 👍