ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Maxim.Savrilov@socenter.ru
To: community@altlinux.ru
Subject: Re: [Comm] Имена файлов.
Date: Wed, 14 Apr 2004 12:49:19 +0700
Message-ID: <20040414124919.52549540.Maxim.Savrilov@socenter.ru> (raw)
In-Reply-To: <200404140830.13141.ru_classic@gts.lg.ua>

[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]

On Wed, 14 Apr 2004 08:30:13 +0300
Alexander Kuprin <ru_classic@gts.lg.ua> wrote:

> On Wednesday 14 April 2004 08:23, Maxim.Savrilov@socenter.ru wrote:
> > > > Имеются zip-архивы, сделанные в винде, с русскими именами файлов.
> > > > Вопрос: как перекодировать эти имена в koi8?
> > > > Команда
> > > > unzip -l 01.zip | iconv -f CP866 -t koi8
> > > > сразу же обламывается.
> > команда абсолютно корректна, так что совет по книжкам можете наклеить себе
> > на монитор, Andrey Brindeew <abr@altlinux.ru> (гений, спаситель отечества и
> > пр. и пр. и пр.)
> >
> > но нет диагностики
> > с каким сообщением обламывается iconv?
> 
> Максим, в отличие от Андрея Вы не правы. Возможно он высказал совет в немного 
> резкой форме, но суть от этого не меняется. Евгению нужно подучиться, чтобы 
> не задавать _такие_ вопросы. Единственный способ переименовать файлы в архиве 
> (если только собственно архиватор не содержит подобный механизм), это 
> распаковать архив, переименовать файлы, а потом запаковать. А ключ -l просто 
> выводит список файлов и помочь тут никак не может.

В вопросе не было указания на то, что нужно сделать новый архив с перекодированными именами
человек привел корректную команду:
>unzip -l 01.zip | iconv -f CP866 -t koi8

Исходя из этого, я решил что проблема в перекодировке, а не в переименовании

ему в ответ:
>unzip у тебя пишет на диск, а iconv ждет от него данные на STDIN.
и совет про детские книжки.

Хотя наверное неоднозначность вопроса и породила такие бурные реакции. Причем разные.
Извиняюсь.


-- 
Я ем все что дают. Что не дают - сперва отбираю, потом ем

[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]

  reply	other threads:[~2004-04-14  5:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-14  3:31 Yevgeny Manyashev
2004-04-14  4:55 ` Andrey Brindeew
2004-04-14  5:22   ` Alexander Kuprin
2004-04-14  5:40     ` Re[2]: " Sergey A. Kolesnitchenko
2004-04-14  5:23   ` Maxim.Savrilov
2004-04-14  5:30     ` Alexander Kuprin
2004-04-14  5:49       ` Maxim.Savrilov [this message]
2004-04-14  6:45 ` BSW

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=20040414124919.52549540.Maxim.Savrilov@socenter.ru \
    --to=maxim.savrilov@socenter.ru \
    --cc=community@altlinux.ru \
    /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 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