Russian filenames in zip archive

Help
Dmitry-T
2005-02-03
2013-05-28
  • Dmitry-T
    Dmitry-T
    2005-02-03

    7-Zip uses DOS (OEM) encoding for file names in ZIP.

    1. In Windows 2000 i add files width russian filenames to zip archive (7-zip).

    2. In Linux (Debian 3, p7zip_4.13_x86_linux_bin.tar.bz2):
       7za x folder.zip
       and see what russian filenames don`t correct :(

    My LANG and LC_CTYPE = ru_RU.CP1251

    How i may correct unpack this archives in my ru_RU.CP1251? Please help...

     
    • my space
      my space
      2005-02-03

      > 7-Zip uses DOS (OEM) encoding for file names in ZIP.
      > 1. In Windows 2000 i add files width russian filenames to zip archive (7-zip).
      > 2. In Linux (Debian 3, p7zip_4.13_x86_linux_bin.tar.bz2):
      > How i may correct unpack this archives in my ru_RU.CP1251? Please help...

      I think that the Zip format can only store portably ANSI filenames.

      On Unix, Zip stores filenames according your LANG/LC_CTYPE.
      It can be C, utf8, ru_RU.CP1251 ...

      To be sure, in Windows 2000, try to make your archive.zip with several archivers like :
      - 7-zip
      - winzip (trial)
      - winrar (trial)
      - and of course zip for Windows : http://sourceforge.net/project/showfiles.php?group_id=23617&package_id=16432

      Then on your Debian, try to unzip with :
      - p7zip
      - and of course : unzip

      Then tell us if you can use reliably russian filenames in archives.zip across several OS.

      For non-ansi filenames, you really should use modern formats like 7-zip ;)

       
    • Dmitry-T
      Dmitry-T
      2005-02-09

      Correct unpack my ZIP archives:

      7za x folder.zip -o/tmp

      convmv --notest -f cp866 -t cp1251 -r /tmp

      It not the best decision...

       
      • my space
        my space
        2005-02-10

        why do you use the zip format instead of the 7-zip format in order to store russian filenames ?

         
    • Dmitry-T
      Dmitry-T
      2005-02-11

      >why do you use the zip format instead of the 7-zip format in order to store russian filenames ?

      I research hard disks in my job. So on I need to unpack all archives which would be founded.