What to do when a locale warning occurs during SSH login

Overview

This article describes how to deal with Perl's locale warning after SSH login.

Example error message

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja_JP.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja_JP.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja_JP.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "ja_JP.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

SSHERROR011.png

Occurrence condition

We have confirmed that this phenomenon occurs only in the following cases.

  • The server name of the SSH connection destination starts with "ty".
    For how to check the server name, please refer to How to check the host server.
  • The SSH connection source client is using the Mac terminal.
    • This phenomenon does not occur with SSH connections from Windows or Linux.

Workaround

Please follow the steps below to change the settings on the terminal side.

STEP 1: Open terminal settings.

Open the profile from the terminal settings screen and open the "Advanced" tab.

STEP 2: Change settings.

Uncheck "Set locale environment variables on startup".

SSHERROR020.png

STEP 3: Exit the terminal.

Exit Terminal.

*Please "Exit" instead of just minimizing or closing the window.

STEP 4: Restart the terminal.

Restart the terminal, make an SSH connection, and check if the display has disappeared.

Was this article helpful?
0 out of 1 found this helpful