Hi.
Running Rocket curl 7.52.1 on z/OS 2.2. Calling curl from a REXX running in TSO via the BPXWUNIX program as in the following example:
/rexx/
cmd=’/rocket/bin/curl’,
‘http://www.yahoo.com -i’
stdin.0=0
stdout.0=0
stderr.0=0
env.1=’_BPXK_AUTOCVT=ON’
env.2=’_CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)‘
env.3=’_TAG_REDIR_ERR=txt’
env.4=’_TAG_REDIR_IN=txt’
env.5=’_TAG_REDIR_OUT=txt’
env.0=5
call bpxwunix cmd,“stdin.”,“stdout.”,“stderr.”,"env."
say "BPXWUNIX RC="result;
say;say “STDOUT >”;say
do i=1 to stdout.0;say stdout.i;end
say;say “STDERR >”;say
do i=1 to stderr.0;say stderr.i;end
Depending on the URL passed to curl the output looks something like the following:
BPXWUNIX RC=0
STDOUT >
:::&:::::::::|.:::/::::(?>::::::::::::::::::::::::(::::::::::::(?>:::::::::::::::::::
:::>:::::::/>::::::>:?::>::::::>,:::::?>::>::::::::::::::%/:>:::::>,>?:>:::::::::
STDERR >
:::::?:/%::::::::::::::::::::::::::::/::::::::::::::::::::::::::::_::::::::>:::::::
:/%::::::>:::::<:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::
Piping the curl command through iconv does not produce legible EBCDIC.
If the environment variables are removed (env.0=0) and the curl command piped through iconv then the STDOUT is legible EBCDIC. Nothing seems to make STDERR legible.
Are there missing environment variables or some other config?
Is this a similar issue to curl running under BPXBATCH?
Will a future release of curl correctly support character set translation in the BPXWUNIX program?
Any ETA on a new release?
Thanks, Richard.