Skip to content

Instantly share code, notes, and snippets.

@cbrunnkvist
Last active June 6, 2024 10:06
Show Gist options
  • Save cbrunnkvist/a57ad9c15bdf50b94dd40a8fceb7d081 to your computer and use it in GitHub Desktop.
Save cbrunnkvist/a57ad9c15bdf50b94dd40a8fceb7d081 to your computer and use it in GitHub Desktop.
How to resolve perl warnings about locale when SSH:ing from macOS into Debian/Ubuntu Linux
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
# Add this to your ~/.ssh/config on macOS
Host *
SetEnv LANGUAGE=en_US.UTF-8 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment