I am using unzip tool on my environment (latest version and I would like to convert ASCII file to EBCDIC during decompressing but it doesn't work as expected with the -a option.
First, I have zipped an text file, which is on the Unix Services environment (in EBCDIC) with the zip tool, option -a (translate to ASCII). Then, the zip file is sent to my Windows desktop and after unzipped on Windows, the text file is readable (so I guess that the translation to ASCII has worked correctly).
I tried to unzip the same zipped file on the Unix Services environment with the unzip tool, option -a ("auto-convert any text files") but the unzipped file is still in ASCII and it is not readable. I have to use iconv command to read it correctly (iconv -f 819 -t 1047).
Is there a way to translate the file from ASCII to EBCDIC when I unzip it, like I did the translation from EBCDIC to ASCII when I zipped it ?
Thank you for your help
Regards
Sébastien COUVENHES
I am using unzip tool on my environment (latest version and I would like to convert ASCII file to EBCDIC during decompressing but it doesn't work as expected with the -a option.
First, I have zipped an text file, which is on the Unix Services environment (in EBCDIC) with the zip tool, option -a (translate to ASCII). Then, the zip file is sent to my Windows desktop and after unzipped on Windows, the text file is readable (so I guess that the translation to ASCII has worked correctly).
I tried to unzip the same zipped file on the Unix Services environment with the unzip tool, option -a ("auto-convert any text files") but the unzipped file is still in ASCII and it is not readable. I have to use iconv command to read it correctly (iconv -f 819 -t 1047).
Is there a way to translate the file from ASCII to EBCDIC when I unzip it, like I did the translation from EBCDIC to ASCII when I zipped it ?
Thank you for your help
Regards
Sébastien COUVENHES
To make sure we're talking about the same version of unzip, can you please run the following command and post the entire output here:
unzip --version
Thanks,
Vladimir
I am using unzip tool on my environment (latest version and I would like to convert ASCII file to EBCDIC during decompressing but it doesn't work as expected with the -a option.
First, I have zipped an text file, which is on the Unix Services environment (in EBCDIC) with the zip tool, option -a (translate to ASCII). Then, the zip file is sent to my Windows desktop and after unzipped on Windows, the text file is readable (so I guess that the translation to ASCII has worked correctly).
I tried to unzip the same zipped file on the Unix Services environment with the unzip tool, option -a ("auto-convert any text files") but the unzipped file is still in ASCII and it is not readable. I have to use iconv command to read it correctly (iconv -f 819 -t 1047).
Is there a way to translate the file from ASCII to EBCDIC when I unzip it, like I did the translation from EBCDIC to ASCII when I zipped it ?
Thank you for your help
Regards
Sébastien COUVENHES
zip --version
conda list zip
I am using unzip tool on my environment (latest version and I would like to convert ASCII file to EBCDIC during decompressing but it doesn't work as expected with the -a option.
First, I have zipped an text file, which is on the Unix Services environment (in EBCDIC) with the zip tool, option -a (translate to ASCII). Then, the zip file is sent to my Windows desktop and after unzipped on Windows, the text file is readable (so I guess that the translation to ASCII has worked correctly).
I tried to unzip the same zipped file on the Unix Services environment with the unzip tool, option -a ("auto-convert any text files") but the unzipped file is still in ASCII and it is not readable. I have to use iconv command to read it correctly (iconv -f 819 -t 1047).
Is there a way to translate the file from ASCII to EBCDIC when I unzip it, like I did the translation from EBCDIC to ASCII when I zipped it ?
Thank you for your help
Regards
Sébastien COUVENHES
Hello Vladimir
Here are the requested outputs of the command :
HOSTxxx /u/user/xxxxxxxx % zip --version
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
This is Zip 3.0 (July 5th 2008), by Info-ZIP.
Currently maintained by E. Gordon. Please send bug reports to
the authors using the web page at www.info-zip.org; see README for details.
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip,
as of above date; see http://www.info-zip.org/ for other sites.
Compiled with IBM C version 420.1.1 for Unix (Unknown) on Mar 3 2016.
Zip special compilation options:
USE_EF_UT_TIME (store Universal Time)
SYMLINK_SUPPORT (symbolic links supported)
LARGE_FILE_SUPPORT (can read and write large files on file system)
ZIP64_SUPPORT (use Zip64 to store large files in archives)
STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field)
UIDGID_16BIT (old Unix 16-bit UID/GID extra field also used)
[encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3)
Encryption notice:
The encryption code of this program is not copyrighted and is
put in the public domain. It was originally written in Europe
and, to the best of our knowledge, can be freely distributed
in both source and object forms from any country, including
the USA under License Exception TSU of the U.S. Export
Administration Regulations (section 740.13(e)) of 6 June 2002.
Zip environment options:
ZIP: [none]
ZIPOPT: [none]
_______________________________________________________________________
HOSTxxx /u/user/xxxxxxxx/unzip-6.0-13/bin % ./unzip -v
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ;
see ftp://ftp.info-zip.org/pub/infozip/UnZip.html for other sites.
Compiled with gcc 8.2.0 for Unix on Jan 15 2021.
UnZip special compilation options:
COPYRIGHT_CLEAN (PKZIP 0.9x unreducing method not supported)
SET_DIR_ATTRIB
SYMLINKS (symbolic links supported, if RTL and file system permit)
TIMESTAMP
UNIXBACKUP
USE_EF_UT_TIME
USE_UNSHRINK (PKZIP/Zip 1.x unshrinking method supported)
USE_DEFLATE64 (PKZIP 4.x Deflate64(tm) supported)
LARGE_FILE_SUPPORT (large files over 2 GiB supported)
ZIP64_SUPPORT (archives using Zip64 for large files supported)
USE_BZIP2 (PKZIP 4.6+, using bzip2 lib version 1.0.8, 13-Jul-2019)
VMS_TEXT_CONV
[decryption, version 2.11 of 05 Jan 2007]
UnZip and ZipInfo environment options:
UNZIP: [none]
UNZIPOPT: [none]
ZIPINFO: [none]
ZIPINFOOPT: [none]
Thank you for your help,
Sébastien
I am using unzip tool on my environment (latest version and I would like to convert ASCII file to EBCDIC during decompressing but it doesn't work as expected with the -a option.
First, I have zipped an text file, which is on the Unix Services environment (in EBCDIC) with the zip tool, option -a (translate to ASCII). Then, the zip file is sent to my Windows desktop and after unzipped on Windows, the text file is readable (so I guess that the translation to ASCII has worked correctly).
I tried to unzip the same zipped file on the Unix Services environment with the unzip tool, option -a ("auto-convert any text files") but the unzipped file is still in ASCII and it is not readable. I have to use iconv command to read it correctly (iconv -f 819 -t 1047).
Is there a way to translate the file from ASCII to EBCDIC when I unzip it, like I did the translation from EBCDIC to ASCII when I zipped it ?
Thank you for your help
Regards
Sébastien COUVENHES
Hi Sebastien,
You are using the old build of zip and the new build of unzip.
In the new build of zip this "-a" option is deprecated.
So my recommendation for you will be - to use a new build of zip and new build of unzip without "-a" option.
The new build of zip saves tags of your files, and new version of unzip will restore the original tags of your files on USS.
Thanks,
Alex
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.