I have Netgear Stora MS2000 (which uses a modified version of Red Hat) and have strange font issues while connecting by SSH. Note that this occurs both when connecting by PuTTY from Windows and by performing ssh from Mac console.

When I use some Polish letter and type ls it is displayed as two question marks. However, when I try to autocomplete the file name it displays correctly. This is illustrated in the following picture:

console example

Tried to change TERM and LANG variables to different values but without any luck.

I also noticed wrong display of mc, this may (or may not) be related to the same issue:


Any ideas what should I change?

The screens where made from PuTTY but it looks the same from Mac terminal.


Answering question from comment, here is output from locale, alias ls and echo młodość | od -t x1:

-bash-3.2$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
-bash-3.2$ alias ls
alias ls='ls --color=tty'
-bash-3.2$ echo młodość | od -t x1
0000000 6d c5 82 6f 64 6f c5 9b c4 87 0a
  • 1
    What is the output of locale, of alias ls, and of echo młodość | od -t x1? Mar 1, 2015 at 1:02
  • @Gilles: See updated question.
    – bpiec
    Mar 1, 2015 at 12:58
  • Given the messages from locale, I think the locale definition files for your language are missing. Either you need some command to install them manually (this is the GUI way, I don't know what the command line way is) or the files have been omitted from this stripped-down installation. Mar 1, 2015 at 14:28

1 Answer 1


Based on comment from Gilles I managed to fix this issue. The problem was missing pl_PL locale. I found instructions on PC LOAD LETTER blog:

cd ~/sometemp
wget http://sourceforge.net/projects/dsgpl/files/DSM%203.1%20Tool%20Chains/Marvell%2088F628x%20Linux%202.6.32/gcc421_glibc25_88f628x.tgz
tar xvfz gcc421_glibc25_88f628x.tgz
cd arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/usr/bin
cp locale /opt/bin
cp localedef /opt/bin
cp -R arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/usr/share/i18n /usr/share
#-----keep another copy safe in case DSM is reinstalled later
cp -R arm-none-linux-gnueabi/arm-none-linux-gnueabi/libc/usr/share/i18n /opt/share
mkdir /usr/lib/locale

And then by typing:

localedef -c -f UTF-8 -i pl_PL pl_PL.utf8

and relogging everything works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.