zopencommunity / sedport

Apache License 2.0
0 stars 0 forks source link

sed does not preserve file encoding when editing in place #7

Open Christopher-Chappell opened 1 year ago

Christopher-Chappell commented 1 year ago

example:

ZWEB@AQMVSOE ~/temp/test-folder> ls -T
total 1
t IBM-1047    T=on  -rw-rw-rw-   1 ZWEB     DEFLT1        19 May 19 13:23 test-file.txt
ZWEB@AQMVSOE ~/temp/test-folder> sed -i 's/line/say/g' test-file.txt 
ZWEB@AQMVSOE ~/temp/test-folder> ls -T
total 1
t ISO8859-1   T=on  -rw-rw-rw-   1 ZWEB     DEFLT1        18 May 19 13:24 test-file.txt
mgrossmann commented 7 months ago

Just installed latest sed release package and similar findings. Is there any news?

covener commented 5 months ago

CC @IgorTodorovskiIBM (like https://github.com/ZOSOpenTools/perlport/issues/64)

IgorTodorovskiIBM commented 2 months ago

The latest sed release should have the fix