Skip to main content

Hello,

I use curl -sSf -u "myid:mypwd" -o myfile.tar <URL to Artifactory maven2 artifact>

When I do a ls -alT myfile.tar I get t IBM-1047    T=on  -rw-r--r--

How can I prevent curl th convert the Data?

Regards

Frank

Hello,

I use curl -sSf -u "myid:mypwd" -o myfile.tar <URL to Artifactory maven2 artifact>

When I do a ls -alT myfile.tar I get t IBM-1047    T=on  -rw-r--r--

How can I prevent curl th convert the Data?

Regards

Frank

Hi Frank,

Are you writing to a new file or rewriting an existent file with IBM-1047 text tag?

Thanks,
Sergey


Hello,

I use curl -sSf -u "myid:mypwd" -o myfile.tar <URL to Artifactory maven2 artifact>

When I do a ls -alT myfile.tar I get t IBM-1047    T=on  -rw-r--r--

How can I prevent curl th convert the Data?

Regards

Frank

Hi Sergey,

jes this is a new file.

Regards
Frank


Hello,

I use curl -sSf -u "myid:mypwd" -o myfile.tar <URL to Artifactory maven2 artifact>

When I do a ls -alT myfile.tar I get t IBM-1047    T=on  -rw-r--r--

How can I prevent curl th convert the Data?

Regards

Frank

Curl shouldn't convert the output when -o option is using. 
1) Could you say, which version of curl you are using?
Please run one of the commands:
'curl --version'
or 
'conda list curl' 
if you are using conda.

2) If possible, could you send us the output of 'env | sort' command?

Thanks,
Sergey


Hello,

I use curl -sSf -u "myid:mypwd" -o myfile.tar <URL to Artifactory maven2 artifact>

When I do a ls -alT myfile.tar I get t IBM-1047    T=on  -rw-r--r--

How can I prevent curl th convert the Data?

Regards

Frank

Here the output of curl --version
curl 8.7.1 (i370-ibm-openedition) libcurl/8.7.1 OpenSSL/3.2.1 zlib/1.3 libssh2/1.11.0 nghttp2/1.61.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz NTLM SPNEGO SSL TLS-SRP UnixSockets

Here the output of env | sort
A2E=-o from=ISO8859-1,to=IBM-1047
ANT_HOME=/usr/lpp/road4z
ANT_HOME_CONDA_BACKUP=
ASCII_TERMINFO=/usr/lpp/road4z/share/lib/terminfo
CLASSPATH=/usr/lpp/db2/db2c10/jdbc/classes/db2jcc4.jar:/usr/lpp/db2/db2c10/jdbc/classes/db2jcc_license_cisuz.jar:
COBOL_INSTALL_DIR=/usr/lpp/cobol
CURL_CA_BUNDLE=/usr/lpp/road4z/etc/ssl/cacert.pem
CURL_HOME=/usr/lpp/road4z
DBB_CONF=/usr/lpp/IBM/dbb/conf
DBB_HOME=/usr/lpp/IBM/dbb
GIT_EXEC_PATH=/usr/lpp/road4z/libexec/git-core
GIT_MAN_PATH=/usr/lpp/road4z/share/man
GIT_SHELL=/usr/lpp/road4z/bin/bash
GIT_SSL_CAINFO=/usr/lpp/road4z/ssl/cacert.pem
GIT_TEMPLATE_DIR=/usr/lpp/road4z/share/git-core/templates
GROOVY_HOME=/usr/lpp/IBM/dbb/groovy
HOME=/u/xv49209
IBM_JAVA_OPTIONS=-Xnocompressedrefs
JAVA_DUMP_TDUMP_PATTERN=DBG.JVM.TD.%uid.%job.D%y%m%d.T%H%M%S
JAVA_HOME=/usr/lpp/JAVA64
LANG=C
LIBPATH=/usr/lpp/db2/db2c10/jdbc/lib:/usr/lpp/JAVA/lib/:/usr/lpp/road4z/lib/perl5/5.38.2/os390/CORE:/usr/lpp/road4z/lib:/lib:/usr/lib:/usr/lpp/IBM/zoautil/lib
LOGNAME=XV49209
MAIL=/usr/mail/XV49209
MANPATH=/usr/lpp/road4z/share/man:/usr/man/%L:/usr/lpp/IBM/zoautil/docs/%L
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat
OPENSSL_CONF=/usr/lpp/road4z/ssl/openssl.cnf
PATH=/usr/lpp/IBM/dbb/groovy/bin:/usr/lpp/IBM/dbb/bin:/usr/lpp/JAVA/bin:/usr/lpp/road4z/bin:/bin:/usr/bin:/usr/sbin:/usr/lpp/skrb/bin:/usr/lpp/cobol/bin:/usr/lpp/IBM/zoautil/bin
PERL5LIB=/usr/lpp/road4z/lib/perl5/site_perl:/usr/lpp/road4z/lib/perl5:
PS1=u@h [33[32m]w[33[33m]$(pgitb)[33[00m] $
PWD=/u/xv49209
PYTHONHOME=/usr/lpp/road4z
PYTHONPATH=/usr/lpp/road4z/lib:/usr/lpp/IBM/zoautil/lib
PYTHON_PATH=/usr/lpp/road4z/bin
ROAD4Z_HOME=/usr/lpp/road4z
SHELL=/usr/lpp/road4z/bin/bash
SHLVL=1
SSH_CLIENT=10.223.129.250 56754 22
SSH_CONNECTION=10.223.129.250 56754 10.199.131.9 22
SSH_TTY=/dev/ttyp0001
SSL_CERT_DIR=/usr/lpp/road4z/ssl/certs
SSL_CERT_FILE=/usr/lpp/road4z/ssl/cert.pem
STEPLIB=SYS1.DB2.LINKLIB:none
TERM=xterm-256color
TZ=MEZ-1MESZ-2,M3.5.0,M10.5.0
USER=XV49209
VIMRUNTIME=/usr/lpp/road4z/share/vim/vim91
ZOAU_BASE=/usr/lpp/IBM/zoautil
ZOAU_HOME=/usr/lpp/IBM/zoautil
_=/bin/env
_BPXK_AUTOCVT=ON
_C89_CCMODE=1
_C89_EXTRA_ARGS=1
_CC_CCMODE=1
_CC_EXTRA_ARGS=1
_CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)
_CXX_CCMODE=1
_CXX_EXTRA_ARGS=1
_ENCODE_FILE_EXISTING=IBM-1047
_ENCODE_FILE_NEW=IBM-1047
_TAG_REDIR_ERR=txt
_TAG_REDIR_IN=txt
_TAG_REDIR_OUT=txt

Regards
Frank


Hello,

I use curl -sSf -u "myid:mypwd" -o myfile.tar <URL to Artifactory maven2 artifact>

When I do a ls -alT myfile.tar I get t IBM-1047    T=on  -rw-r--r--

How can I prevent curl th convert the Data?

Regards

Frank

I suggest, the reason of the conversion is the setting of _ENCODE_FILE_NEW variable.
Could you please try to unset it temporary and check if curl will be download the file without conversion. 

unset _ENCODE_FILE_NEW


Hello,

I use curl -sSf -u "myid:mypwd" -o myfile.tar <URL to Artifactory maven2 artifact>

When I do a ls -alT myfile.tar I get t IBM-1047    T=on  -rw-r--r--

How can I prevent curl th convert the Data?

Regards

Frank

Hi Sergey,

unset _ENCODE_FILE_NEW

 results in a 

t ISO8859-1   T=on  -rw-r--r-- 

and tar die not work.

When I use 

export _ENCODE_FILE_NEW=BINARY

the file is taged as

b binary      T=off -rw-r--r-- 

and tar works.

Is this intentional? Od do we have to change some settings?

Regards
Frank