From: "Денис Ягофаров" <denyago@rambler.ru> To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] Samba + русские названия в консоли Date: Mon, 20 Jul 2009 18:53:19 +0300 Message-ID: <4A6492EF.2010104@rambler.ru> (raw) In-Reply-To: <4A6482D3.4050801@gmail.com> [-- Attachment #1: Type: text/plain, Size: 1972 bytes --] Motsyo Gennadi aka Drool пишет: > Денис Ягофаров пишет: >> # locale >> LANG=ru_RU.UTF-8 > > А зачем Вы руту русскую локаль выставили? Пробовал, чтоб под ним отображались русские имена файлов (но, Вы видели, что не работает как надо) и в последствии можно было tar-ить папки с русскими файлами (как я полагал ранее). > Я бы сделал немного с другой стороны - слить виндой из самбы всю > информацию, нормально перенастроить конфиг и локаль - и вернуть на место. Тут я с Вами согласен, но либо я выставляю unix charset = KOI8-U и у меня в текущей конфигурации всё видно из консоли (но пользователи не смогут сохранять названия с не-KOI8-U символами) или использую предложенный Вами конфиг (но тогда в консоли ничего не видно). Потому-то я и хочу разобраться, что не так. Как понимаю, у меня неправильно отображаются имена файлов из консоли из-за неправильной локали. Но при использовании "правильной" локали (ru_RU.UTF-8) системные утилиты вроде ls выводят вместо символов вопросики, а bash всё отлично показывает. Итак. LANG=ru_RU.UTF-8 LC_CTYPE="ru_RU.UTF-8" LC_NUMERIC="ru_RU.UTF-8" LC_TIME="ru_RU.UTF-8" LC_COLLATE="ru_RU.UTF-8" LC_MONETARY="ru_RU.UTF-8" LC_MESSAGES="ru_RU.UTF-8" LC_PAPER="ru_RU.UTF-8" LC_NAME="ru_RU.UTF-8" LC_ADDRESS="ru_RU.UTF-8" LC_TELEPHONE="ru_RU.UTF-8" LC_MEASUREMENT="ru_RU.UTF-8" LC_IDENTIFICATION="ru_RU.UTF-8" LC_ALL= (простой юзер) 1. Если выставить в моём конфиге: dos charset = CP866 unix charset = UTF8 display charset = CP1251 Создать из-под винды файл _пробаUTF8.txt. То, из консоли он выглядит как /mnt/DWL/install/_п©я─п╬п╠п╟UTF8.txt 2. Если выставить в моём конфиге unix charset = KOI8-U Создать из-под винды файл _пробаKOI8-R.txt. То, из консоли он выглядит как /mnt/DWL/install/_?????KOI8-R.txt Если переставить локаль на LANG=ru_RU , то всё выглядит как /mnt/DWL/install/_пробаKOI8-R.txt и /mnt/DWL/install/_п©я?п╬п╠п╟UTF8.txt. Tar в любом случае архивирует файлы с бессмысленными именами. [-- Attachment #2: denyago.vcf --] [-- Type: text/x-vcard, Size: 370 bytes --] begin:vcard fn:Denis Timurovich Yagofarov n:Yagofarov;Denis Timurovich org:ITGIS NASU adr:room 615;;Chokolovski blvdr., 13;Kiev;;03151;Ukraine email;internet:denyago@rambler.ru title:system administrator tel;work:80445201209 tel;cell:80662933760 note;quoted-printable:xmmp: denyago@gmail.com=0D=0A= xmmp: diyago@jabber.te.ua x-mozilla-html:FALSE version:2.1 end:vcard
next prev parent reply other threads:[~2009-07-20 15:53 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-07-20 10:15 Денис Ягофаров 2009-07-20 10:51 ` Motsyo Gennadi aka Drool 2009-07-20 11:18 ` Денис Ягофаров 2009-07-20 14:06 ` Денис Ягофаров 2009-07-20 14:44 ` Motsyo Gennadi aka Drool 2009-07-20 15:53 ` Денис Ягофаров [this message] 2009-07-20 19:52 ` Alexander Yereschenko 2009-07-21 7:38 ` Денис Ягофаров 2009-07-21 16:24 ` Alexander Yereschenko 2009-07-22 8:09 ` Денис Ягофаров 2009-07-22 14:00 ` Motsyo Gennadi aka Drool 2009-07-22 14:18 ` Alexander Yereschenko 2009-07-22 14:43 ` Yuri Bushmelev 2009-07-22 16:43 ` Andrey Rahmatullin 2009-07-22 16:48 ` Led
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4A6492EF.2010104@rambler.ru \ --to=denyago@rambler.ru \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git