* [devel] светлое будущее с UTF-8 и LANG=POSIX для root @ 2012-11-27 13:14 Sergey Y. Afonin 2012-11-27 17:19 ` Dmitry V. Levin 0 siblings, 1 reply; 12+ messages in thread From: Sergey Y. Afonin @ 2012-11-27 13:14 UTC (permalink / raw) To: ALT Linux Team development discussions Приветствую. А что продолжает удерживать POSIX локаль для root ? Что-то я, вроде, слышал про проблемы сортировки и т.п., которые, когда-то, возникали у некоторых утилит. Как сейчас ? Проблема с syslog и локализованными сообщениями и датами, по идее, должна решаться посредством LC_MESSAGES и LC_TIME, а остальное, по идее, можно и ru_RU.UTF-8 сделать. Или я ошибаюсь ? -- С уважением, Сергей Афонин asy@altlinux.ru ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-27 13:14 [devel] светлое будущее с UTF-8 и LANG=POSIX для root Sergey Y. Afonin @ 2012-11-27 17:19 ` Dmitry V. Levin 2012-11-28 6:34 ` Pavel Isopenko 2012-11-28 12:31 ` Sergey Y. Afonin 0 siblings, 2 replies; 12+ messages in thread From: Dmitry V. Levin @ 2012-11-27 17:19 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 983 bytes --] On Tue, Nov 27, 2012 at 05:14:32PM +0400, Sergey Y. Afonin wrote: > Приветствую. > > А что продолжает удерживать POSIX локаль для root ? > Что-то я, вроде, слышал про проблемы сортировки и т.п., > которые, когда-то, возникали у некоторых утилит. Как сейчас ? Сортировка и прочая дребедень в "локали" POSIX всегда будет быстрее чем в UTF. Сортировку в многобайтных локалях в принципе невозможно сделать такой же быстрой, как в ascii. Можно сделать не очень тормозной, как сейчас, но не более того. Кроме того, collation в разных локалях порой бывает несколько непривычный. Короче говоря, каждый выбирает для себя, и далеко не всем оно нужно. > Проблема с syslog и локализованными сообщениями и датами, > по идее, должна решаться посредством LC_MESSAGES и LC_TIME, > а остальное, по идее, можно и ru_RU.UTF-8 сделать. Или я > ошибаюсь ? Вам нравится, когда в syslog пишут локализованные сообщения, особенно когда они еще и на разных языках? -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-27 17:19 ` Dmitry V. Levin @ 2012-11-28 6:34 ` Pavel Isopenko 2012-11-28 9:51 ` Michael Shigorin 2012-11-28 11:50 ` Денис Смирнов 2012-11-28 12:31 ` Sergey Y. Afonin 1 sibling, 2 replies; 12+ messages in thread From: Pavel Isopenko @ 2012-11-28 6:34 UTC (permalink / raw) To: ALT Linux Team development discussions В Втр, 27/11/2012 в 21:19 +0400, Dmitry V. Levin пишет: > Сортировка и прочая дребедень в "локали" POSIX всегда будет быстрее > чем в UTF. Сортировку в многобайтных локалях в принципе невозможно > сделать такой же быстрой, как в ascii. Можно сделать не очень тормозной, > как сейчас, но не более того. Кроме того, collation в разных локалях > порой бывает несколько непривычный. Короче говоря, каждый выбирает для > себя, и далеко не всем оно нужно. > Всё так, спора нет. Тут вмешивается ещё такой параметр как удобство освоения системы. Объянять неофитам в стопицотый раз что из-под рута "всё" выглядит кракозябрами потому что "так надо",- утомляет однако. В некоторых дистрибутивах уже сдались. И поскольку тема всё равно будет всплывать раз за разом, продуктивнее таки подумать на тему компромисса. > > Проблема с syslog и локализованными сообщениями и датами, > > по идее, должна решаться посредством LC_MESSAGES и LC_TIME, > > а остальное, по идее, можно и ru_RU.UTF-8 сделать. Или я > > ошибаюсь ? > > Вам нравится, когда в syslog пишут локализованные сообщения, особенно > когда они еще и на разных языках? Секундочку. Мы уверены, что от изменения установок локали изменится _язык_сообщений_? Да любой немец вам и в локали POSIX легко на родном в syslog нарисует, если такая дурь ему приспичит. В общем предлагаю попробовать на некоей бете. Вдруг ущерб от ru_RU.UTF-8 окажется не таким страшным, чтобы перевесить выгоды? И вдобавок, не трогать пока серверный вариант установки, только вариант рабочей станции. -- С уважением, Павел Исопенко ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-28 6:34 ` Pavel Isopenko @ 2012-11-28 9:51 ` Michael Shigorin 2012-11-28 11:50 ` Денис Смирнов 1 sibling, 0 replies; 12+ messages in thread From: Michael Shigorin @ 2012-11-28 9:51 UTC (permalink / raw) To: ALT Linux Team development discussions On Wed, Nov 28, 2012 at 10:34:56AM +0400, Pavel Isopenko wrote: > Тут вмешивается ещё такой параметр как удобство освоения > системы. Объянять неофитам в стопицотый раз что из-под рута > "всё" выглядит кракозябрами потому что "так надо",- утомляет Так есть же разница между /root/.bashrc и /root/.bash_profile, между /etc/sysconfig/i18n и /root/.i18n -- вот ей и стоит воспользоваться, IMHO. > В общем предлагаю попробовать на некоей бете. Вдруг ущерб от > ru_RU.UTF-8 окажется не таким страшным, чтобы перевесить > выгоды? И вдобавок, не трогать пока серверный вариант > установки, только вариант рабочей станции. Если изменения будут формализованы, испечь образ с ними при удобном случае будет проще. :) -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-28 6:34 ` Pavel Isopenko 2012-11-28 9:51 ` Michael Shigorin @ 2012-11-28 11:50 ` Денис Смирнов 1 sibling, 0 replies; 12+ messages in thread From: Денис Смирнов @ 2012-11-28 11:50 UTC (permalink / raw) To: ALT Linux Team development discussions [-- Attachment #1: Type: text/plain, Size: 516 bytes --] On Wed, Nov 28, 2012 at 10:34:56AM +0400, Pavel Isopenko wrote: PI> Всё так, спора нет. Тут вмешивается ещё такой параметр как удобство PI> освоения системы. Объянять неофитам в стопицотый раз что из-под рута PI> "всё" выглядит кракозябрами потому что "так надо",- утомляет однако. В PI> некоторых дистрибутивах уже сдались. Для этого не нужно менять LANG, достаточно LC_CTYPE. -- С уважением, Денис http://mithraen.ru/ ---------------------------------------------------------------------------- [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-27 17:19 ` Dmitry V. Levin 2012-11-28 6:34 ` Pavel Isopenko @ 2012-11-28 12:31 ` Sergey Y. Afonin 2012-11-28 13:04 ` Sergei Epiphanov 1 sibling, 1 reply; 12+ messages in thread From: Sergey Y. Afonin @ 2012-11-28 12:31 UTC (permalink / raw) To: ALT Linux Team development discussions On Tuesday 27 November 2012, Dmitry V. Levin wrote: > > А что продолжает удерживать POSIX локаль для root ? > > Что-то я, вроде, слышал про проблемы сортировки и т.п., > > которые, когда-то, возникали у некоторых утилит. Как сейчас ? > > Сортировка и прочая дребедень в "локали" POSIX всегда будет быстрее > чем в UTF. Сортировку в многобайтных локалях в принципе невозможно > сделать такой же быстрой, как в ascii. Это понятно, но скорость обработки растёт в погоне за игрушками, неужели производительности современных процессоров не хватит, чтобы не заметить увеличения времени обработки текста в utf ? > > Проблема с syslog и локализованными сообщениями и датами, > > по идее, должна решаться посредством LC_MESSAGES и LC_TIME, > > а остальное, по идее, можно и ru_RU.UTF-8 сделать. Или я > > ошибаюсь ? > > Вам нравится, когда в syslog пишут локализованные сообщения, > особенно когда они еще и на разных языках? Не нравится. Потому и написал про LC_MESSAGES и LC_TIME. Но вот имена файлов по-русски видеть бы хотелось из-под root, особенно, с учётом того, что всякие "Рабочие Столы" появляться стали. -- С уважением, Сергей Афонин asy@altlinux.ru ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-28 12:31 ` Sergey Y. Afonin @ 2012-11-28 13:04 ` Sergei Epiphanov 2012-11-28 13:54 ` Sergey Y. Afonin 2012-11-29 7:22 ` Pavel Isopenko 0 siblings, 2 replies; 12+ messages in thread From: Sergei Epiphanov @ 2012-11-28 13:04 UTC (permalink / raw) To: ALT Linux Team development discussions On 28 ноября 2012 16:31 Sergey Y. Afonin wrote: > On Tuesday 27 November 2012, Dmitry V. Levin wrote: > > Вам нравится, когда в syslog пишут локализованные сообщения, > > особенно когда они еще и на разных языках? > > Не нравится. Потому и написал про LC_MESSAGES и LC_TIME. > Но вот имена файлов по-русски видеть бы хотелось из-под root, > особенно, с учётом того, что всякие "Рабочие Столы" появляться > стали. # locale LANG=POSIX LC_CTYPE=ru_RU.UTF8 LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL= # Проблем с русскими буквами в именах файлов и в раскладке клавиатуры нет. -- С уважением, Епифанов Сергей ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-28 13:04 ` Sergei Epiphanov @ 2012-11-28 13:54 ` Sergey Y. Afonin 2012-11-28 14:16 ` Led 2012-11-29 7:22 ` Pavel Isopenko 1 sibling, 1 reply; 12+ messages in thread From: @ 2012-11-28 13:54 UTC (permalink / raw) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-28 13:54 ` Sergey Y. Afonin @ 2012-11-28 14:16 ` Led 0 siblings, 0 replies; 12+ messages in thread From: @ 2012-11-28 14:16 UTC (permalink / raw) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-28 13:04 ` Sergei Epiphanov 2012-11-28 13:54 ` Sergey Y. Afonin @ 2012-11-29 7:22 ` Pavel Isopenko 2012-11-29 7:25 ` Aleksey Novodvorsky 1 sibling, 1 reply; 12+ messages in thread From: @ 2012-11-29 7:22 UTC (permalink / raw) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-29 7:22 ` Pavel Isopenko @ 2012-11-29 7:25 ` Aleksey Novodvorsky 2012-11-29 8:50 ` Sergei Epiphanov 0 siblings, 1 reply; 12+ messages in thread From: @ 2012-11-29 7:25 UTC (permalink / raw) ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [devel] светлое будущее с UTF-8 и LANG=POSIX для root 2012-11-29 7:25 ` Aleksey Novodvorsky @ 2012-11-29 8:50 ` Sergei Epiphanov 0 siblings, 0 replies; 12+ messages in thread From: @ 2012-11-29 8:50 UTC (permalink / raw) ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-11-29 8:50 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-11-27 13:14 [devel] светлое будущее с UTF-8 и LANG=POSIX для root Sergey Y. Afonin 2012-11-27 17:19 ` Dmitry V. Levin 2012-11-28 6:34 ` Pavel Isopenko 2012-11-28 9:51 ` Michael Shigorin 2012-11-28 11:50 ` Денис Смирнов 2012-11-28 12:31 ` Sergey Y. Afonin 2012-11-28 13:04 ` Sergei Epiphanov 2012-11-28 13:54 ` Sergey Y. Afonin 2012-11-28 14:16 ` Led 2012-11-29 7:22 ` Pavel Isopenko 2012-11-29 7:25 ` Aleksey Novodvorsky 2012-11-29 8:50 ` Sergei Epiphanov
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git