* [devel] LANG in rpm scripts @ 2001-02-14 14:35 Peter Novodvorsky 2001-02-14 16:16 ` Dmitry V. Levin 0 siblings, 1 reply; 11+ messages in thread From: Peter Novodvorsky @ 2001-02-14 14:35 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 656 bytes --] Привет! Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых RPM добавить export LANG=C ? NIDD -- ________________________________________________________________________ The Debian Project. Debian booth@Linux Expo Road Show coordinator. Linux Expo Road Show Timeline: 23.04.01 Prague, 24.04.01 Budapest, 25.04.01 Warsaw, 26.04.01-28.04.01 Moscow. Conferences in all cities and exhibition in Moscow. Visit http://people.debian.org/~nidd/LERS-TODO.html if you're intrested. Mail contact: nidd@debian.org Phone contact: 7-095-4261812 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 14:35 [devel] LANG in rpm scripts Peter Novodvorsky @ 2001-02-14 16:16 ` Dmitry V. Levin 2001-02-14 16:17 ` Anton Farygin 2001-02-14 16:30 ` Peter Novodvorsky 0 siblings, 2 replies; 11+ messages in thread From: Dmitry V. Levin @ 2001-02-14 16:16 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 780 bytes --] On Wed, Feb 14, 2001 at 05:35:02PM +0300, Peter Novodvorsky wrote: > Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых > RPM добавить > export LANG=C > ? Нет, потому что это может нарушить собираемость некоторых пакетов. Можно добавить export LANG= export LANGUAGE= Специалисты по локализации, есть возражения? Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 16:16 ` Dmitry V. Levin @ 2001-02-14 16:17 ` Anton Farygin 2001-02-14 16:35 ` Dmitry V. Levin 2001-02-14 16:30 ` Peter Novodvorsky 1 sibling, 1 reply; 11+ messages in thread From: Anton Farygin @ 2001-02-14 16:17 UTC (permalink / raw) To: devel "Dmitry V. Levin" wrote: > > On Wed, Feb 14, 2001 at 05:35:02PM +0300, Peter Novodvorsky wrote: > > Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых > > RPM добавить > > export LANG=C > > ? > > Нет, потому что это может нарушить собираемость некоторых пакетов. > Можно добавить > export LANG= > export LANGUAGE= > > Специалисты по локализации, есть возражения? А почему не unset LANG; unset LANGUAGE ??? Rgds Anton _______________________________________________ Devel mailing list Devel@linux.iplabs.ru http://www.logic.ru/mailman/listinfo/devel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 16:17 ` Anton Farygin @ 2001-02-14 16:35 ` Dmitry V. Levin 2001-02-14 16:33 ` Peter Novodvorsky 0 siblings, 1 reply; 11+ messages in thread From: Dmitry V. Levin @ 2001-02-14 16:35 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 889 bytes --] On Wed, Feb 14, 2001 at 07:17:05PM +0300, Anton Farygin wrote: > > > Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых > > > RPM добавить > > > export LANG=C > > > ? > > > > Нет, потому что это может нарушить собираемость некоторых пакетов. > > Можно добавить > > export LANG= > > export LANGUAGE= > > > > Специалисты по локализации, есть возражения? > > А почему не unset LANG; unset LANGUAGE > ??? Не вижу разницы. Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 16:35 ` Dmitry V. Levin @ 2001-02-14 16:33 ` Peter Novodvorsky 2001-02-14 23:37 ` Dmitry V. Levin 0 siblings, 1 reply; 11+ messages in thread From: Peter Novodvorsky @ 2001-02-14 16:33 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 904 bytes --] Привет! ++ 14/02/01 19:35 +0300 - Dmitry V. Levin: > > Не вижу разницы. А зря. lambda nidd 19:31 ~ > export LANG= lambda nidd 19:31 ~ > locale LANG= LC_CTYPE="" LC_NUMERIC="" LC_TIME="" LC_COLLATE="" LC_MONETARY="" LC_MESSAGES="" LC_PAPER="" LC_NAME="" LC_ADDRESS="" LC_TELEPHONE="" LC_MEASUREMENT="" LC_IDENTIFICATION="" LC_ALL= lambda nidd 19:31 ~ > unset LANG lambda nidd 19:32 ~ > locale LANG=POSIX LC_CTYPE="POSIX" 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= Почувствуйте разницу ;-) NIDD -- Real men don't take backups. They put their source on a public FTP-server and let the world mirror it. -- Linus Torvalds [-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 16:33 ` Peter Novodvorsky @ 2001-02-14 23:37 ` Dmitry V. Levin 0 siblings, 0 replies; 11+ messages in thread From: Dmitry V. Levin @ 2001-02-14 23:37 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 740 bytes --] On Wed, Feb 14, 2001 at 07:33:00PM +0300, Peter Novodvorsky wrote: > Привет! > > ++ 14/02/01 19:35 +0300 - Dmitry V. Levin: > > > > Не вижу разницы. > > А зря. Согласен, unset гораздо правильнее. Итак, против "unset LANG LANGUAGE LINGUAS что_там_еще_на_эту_тему" никто не возражает? Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 16:16 ` Dmitry V. Levin 2001-02-14 16:17 ` Anton Farygin @ 2001-02-14 16:30 ` Peter Novodvorsky 2001-02-14 23:46 ` Dmitry V. Levin 1 sibling, 1 reply; 11+ messages in thread From: Peter Novodvorsky @ 2001-02-14 16:30 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 955 bytes --] Hi! ++ 14/02/01 19:16 +0300 - Dmitry V. Levin: > On Wed, Feb 14, 2001 at 05:35:02PM +0300, Peter Novodvorsky wrote: > > Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых > > RPM добавить > > export LANG=C > > ? > > Нет, потому что это может нарушить собираемость некоторых пакетов. Чем? Если пакеты зависят от ru_RU.KOI8-R, то они должны это явно указывать делая export LANG=ru_RU.KOI8-R. > Можно добавить > export LANG= > export LANGUAGE= > > Специалисты по локализации, есть возражения? Я не согласен (хотя я и не <q>Специалисты по локализации</q own="ldv">). Это совершенно не корректно. Локали '' не существует. 'C' -- стандартная POSIX locale. (Хотя LANG='' и полностью равносильно 'C') NIDD -- Real men don't take backups. They put their source on a public FTP-server and let the world mirror it. -- Linus Torvalds [-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 16:30 ` Peter Novodvorsky @ 2001-02-14 23:46 ` Dmitry V. Levin 2001-02-15 19:04 ` Ivan Zakharyaschev 0 siblings, 1 reply; 11+ messages in thread From: Dmitry V. Levin @ 2001-02-14 23:46 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 1478 bytes --] On Wed, Feb 14, 2001 at 07:30:01PM +0300, Peter Novodvorsky wrote: > > > Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых > > > RPM добавить > > > export LANG=C > > > ? > > > > Нет, потому что это может нарушить собираемость некоторых пакетов. > > Чем? Если пакеты зависят от ru_RU.KOI8-R, то они должны это явно указывать > делая export LANG=ru_RU.KOI8-R. Не совсем так. Есть пакеты, которые при сборке, видя LANG=C, отказываются создавать locale-specific файлы. Очевидно, это поведение пакетов неправильно, но дома я всегда собираю все пакеты с помощью такого скрипта: #!/bin/sh rm -f nohup.out unset LANG LANGUAGE LINGUAS LC_ALL LC_MESSAGES : ${RPM_EXE:=rpm} exec nohup nice time $RPM_EXE "$@" При этом все собирается правильно. А на photo скрипт был другой, вместо "unset" было "=C", и некоторые пакеты, как, возможно, многие из вас помнят, были собраны без /usr/share/locale/*/LC_MESSAGES/* Вопрос: unset * нужен только для сборочных скриптов, или для всех, включая установочные, триггеры и пр. ? Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-14 23:46 ` Dmitry V. Levin @ 2001-02-15 19:04 ` Ivan Zakharyaschev 2001-02-16 2:24 ` Dmitry V. Levin 0 siblings, 1 reply; 11+ messages in thread From: Ivan Zakharyaschev @ 2001-02-15 19:04 UTC (permalink / raw) To: devel On Thu, 15 Feb 2001, Dmitry V. Levin wrote: > On Wed, Feb 14, 2001 at 07:30:01PM +0300, Peter Novodvorsky wrote: > > > > Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых > > > > RPM добавить > > > > export LANG=C > > > > ? > Есть пакеты, которые при сборке, видя LANG=C, отказываются создавать > locale-specific файлы. > Очевидно, это поведение пакетов неправильно, но дома я всегда собираю > все > пакеты с помощью такого скрипта: > > #!/bin/sh > rm -f nohup.out > unset LANG LANGUAGE LINGUAS LC_ALL LC_MESSAGES > : ${RPM_EXE:=rpm} > exec nohup nice time $RPM_EXE "$@" > > При этом все собирается правильно. > Вопрос: unset * нужен только для сборочных скриптов, или для всех, > включая > установочные, триггеры и пр. ? Думаю, для установочных и триггеров не нужен (если это нигде ничему существенно не мешает --вопрос, наверное, как раз про это). -- Best regards, Ivan Z. _______________________________________________ Devel mailing list Devel@linux.iplabs.ru http://www.logic.ru/mailman/listinfo/devel ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-15 19:04 ` Ivan Zakharyaschev @ 2001-02-16 2:24 ` Dmitry V. Levin 2001-02-16 4:27 ` Peter Novodvorsky 0 siblings, 1 reply; 11+ messages in thread From: Dmitry V. Levin @ 2001-02-16 2:24 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 1490 bytes --] On Thu, Feb 15, 2001 at 10:04:24PM +0300, Ivan Zakharyaschev wrote: > > > > > Вопрос к Диме. Можно ли в начало всех шелл скриптов генерируемых > > > > > RPM добавить > > > > > export LANG=C > > > > > ? > > > Есть пакеты, которые при сборке, видя LANG=C, отказываются создавать > > locale-specific файлы. > > Очевидно, это поведение пакетов неправильно, но дома я всегда собираю > > все > > пакеты с помощью такого скрипта: > > > > #!/bin/sh > > rm -f nohup.out > > unset LANG LANGUAGE LINGUAS LC_ALL LC_MESSAGES > > : ${RPM_EXE:=rpm} > > exec nohup nice time $RPM_EXE "$@" > > > > При этом все собирается правильно. > > > Вопрос: unset * нужен только для сборочных скриптов, или для всех, > > включая > > установочные, триггеры и пр. ? > > Думаю, для установочных и триггеров не нужен (если это нигде ничему > существенно не мешает --вопрос, наверное, как раз про это). Не знаю, мешает или нет, я привык запускать rpm в локали C, за исключением тех случаев, когда специально тестирую локализацию. Послушаем, как считают остальные... Regards, Dmitry +-------------------------------------------------------------------------+ Dmitry V. Levin mailto://ldv@fandra.org Software Engineer PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html IPLabs Linux Team http://linux.iplabs.ru Fandra Project http://www.fandra.org +-------------------------------------------------------------------------+ UNIX is user friendly. It's just very selective about who its friends are. [-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [devel] LANG in rpm scripts 2001-02-16 2:24 ` Dmitry V. Levin @ 2001-02-16 4:27 ` Peter Novodvorsky 0 siblings, 0 replies; 11+ messages in thread From: Peter Novodvorsky @ 2001-02-16 4:27 UTC (permalink / raw) To: devel [-- Attachment #1: Type: text/plain, Size: 979 bytes --] ++ 16/02/01 05:24 +0300 - Dmitry V. Levin: > On Thu, Feb 15, 2001 at 10:04:24PM +0300, Ivan Zakharyaschev wrote: > > Не знаю, мешает или нет, я привык запускать rpm в локали C, за исключением > тех случаев, когда специально тестирую локализацию. > > Послушаем, как считают остальные... На самом деле, для меня сие хорошо только в билд скриптах, потому как программа dictfmt ведет себя при других немного не правильно. Разбираться я не стал, но я думаю, что это не единственный случай. NIDD -- /----------------------------------------------------------------------\ The Debian Project. Debian booth@Linux Expo Road Show coordinator. Visit http://people.debian.org/~nidd/LERS-TODO.html if you're intrested. ------------------------------------------------------------------------ Real men don't take backups. They put their source on a public FTP-server and let the world mirror it. -- Linus Torvalds [-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2001-02-16 4:27 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2001-02-14 14:35 [devel] LANG in rpm scripts Peter Novodvorsky 2001-02-14 16:16 ` Dmitry V. Levin 2001-02-14 16:17 ` Anton Farygin 2001-02-14 16:35 ` Dmitry V. Levin 2001-02-14 16:33 ` Peter Novodvorsky 2001-02-14 23:37 ` Dmitry V. Levin 2001-02-14 16:30 ` Peter Novodvorsky 2001-02-14 23:46 ` Dmitry V. Levin 2001-02-15 19:04 ` Ivan Zakharyaschev 2001-02-16 2:24 ` Dmitry V. Levin 2001-02-16 4:27 ` Peter Novodvorsky
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