Thanks to those that offered help (some were offline).
When I set the code page of the OMVS terminal, it works
   f.cvtcmd = SETAUTOCVTON ;
   f.fccsid = 0x0417  ;  // set this
   f.pccsid = 0x0000  ; // ignore this
*  rc =fcntl( STDOUT_FILENO,action, &f ); *
it works.
Before Python the filetag(fccsid) for STDOUT is 0, afterwards it is 0x0417
( = 1047)

I can't find a command to set the code page of my omvs session.  *TSO OMVS
CONV((BPXFX111)) *makes no difference.
I'll raise this on the IBM Community, as it feels like a defect to me ( or
at least a documentation update)

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to