* [Comm] Распаковка архивов с несвоей кодировкой имён файлов. @ 2003-01-11 20:56 Ivan Kudryashov 2003-01-12 6:35 ` Ilya Palagin 2003-01-12 22:21 ` Andrew Grechko 0 siblings, 2 replies; 5+ messages in thread From: Ivan Kudryashov @ 2003-01-11 20:56 UTC (permalink / raw) To: community Здравствуйте! Вопрос следующий. Имеется некий архив. В нём запакованы файлы с русскими именами. В системе, где производилась упаковка, локаль отличается от моей. Естественно, при распаковке имена файлов ломаются. Есть ли какой-нибудь способ запустить распаковщик так, чтобы имена файлов восстановились нормально? Изменение пользовательской локали не помогает. Как-то манипулировать с настройкой монтирования файловой системы? А как? ---------------- Regards, Ivan ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Распаковка архивов с несвоей кодировкой имён файлов. 2003-01-11 20:56 [Comm] Распаковка архивов с несвоей кодировкой имён файлов Ivan Kudryashov @ 2003-01-12 6:35 ` Ilya Palagin 2003-01-12 19:58 ` Ivan Kudryashov 2003-01-12 22:21 ` Andrew Grechko 1 sibling, 1 reply; 5+ messages in thread From: Ilya Palagin @ 2003-01-12 6:35 UTC (permalink / raw) To: community Ivan Kudryashov wrote: > Здравствуйте! > > Вопрос следующий. > > Имеется некий архив. В нём запакованы файлы с русскими именами. В > системе, где производилась упаковка, локаль отличается от моей. > Естественно, при распаковке имена файлов ломаются. Есть ли Вообще-то это противоестественно. Я постоянно пакую файлы tar-ом и rar-ом на сервере с локалью en и успешно распаковываю их на ru. Чем упаковано? > какой-нибудь способ запустить распаковщик так, чтобы имена файлов > восстановились нормально? Изменение пользовательской локали не > помогает. Как-то манипулировать с настройкой монтирования > файловой системы? А как? На какую файловую систему распаковывается? ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Распаковка архивов с несвоей кодировкой имён файлов. 2003-01-12 6:35 ` Ilya Palagin @ 2003-01-12 19:58 ` Ivan Kudryashov 0 siblings, 0 replies; 5+ messages in thread From: Ivan Kudryashov @ 2003-01-12 19:58 UTC (permalink / raw) To: community Hello, Ilya! On Sun, 12 Jan 2003 12:35:43 +0600 You wrote: > Ivan Kudryashov wrote: > > Здравствуйте! > > > > Вопрос следующий. > > > > Имеется некий архив. В нём запакованы файлы с русскими > > именами. В системе, где производилась упаковка, локаль > > отличается от моей. Естественно, при распаковке имена файлов > > ломаются. Есть ли > Вообще-то это противоестественно. Я постоянно пакую файлы > tar-ом и rar-ом на сервере с локалью en и успешно распаковываю > их на ru. Чем упаковано? ыыы... Всё не так просто. Архив tar (+gz или bz), запакованный в системе с локалью ru_RU.KOI8-R, при распаковке в системе с локалью ru_RU.CP1251 даёт ровно такой эффект, как описано. Примерно то же самое будет, если в ru_RU.KOI8-R распаковывать файлы, запакованные в винде (если только архиватор специально не патчили на предмет переноса имён в систему с KOI8, но в последнем случае проблемы просто появятся в ru_RU.CP1251) Впервые я набрёл на эту проблему, когда переводил домашнюю систему с KOI8 на 1251. Сейчас то же самое наблюдается при работе с любыми RAR-архивами. Похоже, RAR как раз жёстко фиксирует кодировку имён в KOI8. > > какой-нибудь способ запустить распаковщик так, чтобы имена > > файлов восстановились нормально? Изменение пользовательской > > локали не помогает. Как-то манипулировать с настройкой > > монтирования файловой системы? А как? > На какую файловую систему распаковывается? Да на какую угодно. Я согласен создать раздел с любой системой, лишь бы работало. Я живу на reiserfs. В системе есть диски с vfat. Вообще, конечно, идеально было бы либо настроить локаль у специально созданного для этой цели пользователя, но это, видимо, не получится. ---------------- Regards, Ivan ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Распаковка архивов с несвоей кодировкой имён файлов. 2003-01-11 20:56 [Comm] Распаковка архивов с несвоей кодировкой имён файлов Ivan Kudryashov 2003-01-12 6:35 ` Ilya Palagin @ 2003-01-12 22:21 ` Andrew Grechko 2003-01-12 22:52 ` Ivan Kudryashov 1 sibling, 1 reply; 5+ messages in thread From: Andrew Grechko @ 2003-01-12 22:21 UTC (permalink / raw) To: community 11 Январь 2003 23:56, Ivan Kudryashov wrote: > Здравствуйте! > > Вопрос следующий. > > Имеется некий архив. В нём запакованы файлы с русскими > именами. В системе, где производилась упаковка, локаль > отличается от моей. Естественно, при распаковке имена файлов > ломаются. Есть ли какой-нибудь способ запустить распаковщик > так, чтобы имена файлов восстановились нормально? Изменение А конвертация имен файлов с помощью iconv'а после рапаковки не решит проблему? > пользовательской локали не помогает. Как-то манипулировать с > настройкой монтирования файловой системы? А как? > > ---------------- > Regards, Ivan > _______________________________________________ > Community mailing list > Community@altlinux.ru > http://www.altlinux.ru/mailman/listinfo/community -- With best regards, Andrew Grechko ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Распаковка архивов с несвоей кодировкой имён файлов. 2003-01-12 22:21 ` Andrew Grechko @ 2003-01-12 22:52 ` Ivan Kudryashov 0 siblings, 0 replies; 5+ messages in thread From: Ivan Kudryashov @ 2003-01-12 22:52 UTC (permalink / raw) To: community Hello, Andrew! On Mon, 13 Jan 2003 01:21:36 +0300 You wrote: > 11 Январь 2003 23:56, Ivan Kudryashov wrote: > > Здравствуйте! > > > > Вопрос следующий. > > > > Имеется некий архив. В нём запакованы файлы с русскими > > именами. В системе, где производилась упаковка, локаль > > отличается от моей. Естественно, при распаковке имена файлов > > ломаются. Есть ли какой-нибудь способ запустить распаковщик > > так, чтобы имена файлов восстановились нормально? Изменение > А конвертация имен файлов с помощью iconv'а после рапаковки не > > решит проблему? Разумеется, решит. Именно так я и делаю на практике, когда приходится. Но вопрос, собственно, в том и состоял: не знает ли кто-нибудь способа запустить приложение (или подмонтировать файловую систему) в таком режиме, чтобы делать этого не приходилось? Преобразование имени файла, по идее, должно при создании этого файла происходить, исходя из сведений о кодировке имён в файловой системе и о текущей локали системы и/или пользователя. Соответственно, хотелось бы временно так поменять эти настройки, чтобы искомая конвертация делалась автоматически. ---------------- Regards, Ivan ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-01-12 22:52 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-01-11 20:56 [Comm] Распаковка архивов с несвоей кодировкой имён файлов Ivan Kudryashov 2003-01-12 6:35 ` Ilya Palagin 2003-01-12 19:58 ` Ivan Kudryashov 2003-01-12 22:21 ` Andrew Grechko 2003-01-12 22:52 ` Ivan Kudryashov
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git