Hi there, I'm getting this error on a new server. It shows up bunch of times, simply by opening the shell through ssh and at every key press:

Apparently I have LANG set to en_US.UTF-8 and LC_CTYPE set to pt_PT.UTF-8 and I can fix the issue by putting export LC_TYPE=en_US.UTF-8 inside my .bash_profile or .bashrc .
However I'm wondering if that message couldn't just be ignored since default bash seems to work fine under the same conditions.
Cheers
Thank you for the report again! and sorry for the late reply.
These error messages typically occur when the locale is not installed on the system. I added workarounds for these error messages in the commit 4d3c595.
BTW, the list of locales installed in the system can be checked by locale -a.
$ locale -a
The way to install a specific locale depends on the system.
Yeah, got it ! I guess I didn't have the pt_PT.UTF-8 which its expecting. Maybe its being sent by the ssh connection from my computer... Either way I don't use it so thank you, the problem's fixed :+1:
OK!
Maybe its being sent by the ssh connection from my computer...
Oh, I see. I haven't thought about that case! Yes, ssh transfers environment variables like TERM, LANG, and LC_* (depending on the ssh config SendEnv/AcceptEnv), so it is possible that the local locale setting causes problems in the host. Thank you!