Open-source Languages & Tools for z/OS

 View Only
Expand all | Collapse all

File encoding tags erased by sed -i

  • 1.  File encoding tags erased by sed -i

    Posted 04-06-2018 14:43

    Here’s a sequence of commands I just entered in USS:

    14:38 /u/tstjv > ls file                                            
    t IBM-1047    T=on  -rwxr-xr-x  nl     1         5 Apr  6 14:38 file
    14:38 /u/tstjv > sed -i 's/f/p/g' file                              
    14:39 /u/tstjv > ls file                                            
    - untagged    T=off -rwxr-xr-x  ----   1         5 Apr  6 14:39 file
    

    As you can see, the EBCDIC encoding is lost. Does anybody know what’s going on? Thanks.

    Edit: command -v sed yields /rsusr/ported/bin/sed.



  • 2.  RE: File encoding tags erased by sed -i

    Posted 04-09-2018 01:09

    Hi Tony,

    Thanks for reporting. We will review this issue.
    Ticket