Есть ОС Slackware 11, русифицирована и локализованаъ
На ней поднят vsftpd, файловая система домашнего каталога ext3
Суть проблемы в том что если названия каталов в ftp писать русскими буквами (Видео, Музыка...), то при присоединени пользователя к серверу, ему они выдаются в неправильной кодироке, хотя в консоли отображаются нормально

Как можно это исправить? Заранее спасибо за помощь...
Привожу листинги rc скриптов:
/etc/rc.font
Код: Выделить всё
#!/bin/sh
#
# This selects your default screen font from among the ones in
# /usr/share/kbd/consolefonts.
#
#setfont -v cp866-8x16.psf.gz
setfont -v Cyr_a8x16.psfu.gz > /dev/null
mapscrn /usr/share/kbd/consoletrans/koi2alt > /dev/null
for i in 1 2 3 4 5 6; do
echo -ne "\033(K" > /dev/tty$i
done
/etc/rc.keymap
Код: Выделить всё
#!/bin/sh
if [ -x /usr/bin/loadkeys ]; then
/bin/loadkeys ru-ms.map > /dev/null
fi
/etc/profile.d
Код: Выделить всё
#!/bin/sh
# Set the system locale. (no, we don't have a menu for this;-)
# For a list of locales which are supported by this machine, type:
# locale -a
# en_US is the Slackware default locale:
export LC_ALL=
export LANG=ru_RU.KOI8-R
export LC_NUMERIC=ru_RU.KOI8-R
export LC_TIME=ru_RU.KOI8-R
export LC_COLLATE=ru_RU.KOI8-R
export LC_MONETARY=ru_RU.KOI8-R
export LC_MESSAGES=ru_RU.KOI8-R
export LC_PAPER=ru_RU.KOI8-R
export LC_NAME=ru_RU.KOI8-R
export LC_ADDRESS=ru_RU.KOI8-R
export LC_TELEPHONE=ru_RU.KOI8-R
export LC_MEASUREMENT=ru_RU.KOI8-R
export LC_IDENTIFICATION=ru_RU.KOI8-R
# 'C' is the old Slackware (and UNIX) default, which is 127-bit
# ASCII with a charmap setting of ANSI_X3.4-1968. These days,
# it's better to use en_US or another modern $LANG setting to
# support extended character sets.
#export LANG=C
# There is also support for UTF-8 locales, but be aware that
# some programs are not yet able to handle UTF-8 and will fail to
# run properly. In those cases, you can set LANG=C before
# starting them. Still, I'd avoid UTF unless you actually need it.
#export LANG=en_US.UTF-8
# Another option for en_US:
#export LANG=en_US.ISO8859-1
# One side effect of the newer locales is that the sort order
# is no longer according to ASCII values, so the sort order will
# change in many places. Since this isn't usually expected
# can break scripts, we'll stick with traditional ASCII sorting.
# If you'd prefer the sort algorithm that goes with your $LANG
# End of /etc/profile.d/lang.sh