bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dd translation problem


From: William Jay Huie
Subject: dd translation problem
Date: Wed, 11 Apr 2001 12:52:04 -0400

Hello,
     I'm writing regarding ACSII to EBCDIC translation for dd.
     I was using dd to translate the hello.C file which was created and
obtained from one of our native EBCDIC systems.
     I ran; dd if=hello.C of=hello.Ca conv=ascii to create the hello.Ca
file.

     The problem seems to be that dd translates the EBCDIC NewLine
character x15 into ASCII x85. There's not really an ASCII NewLine per say,
but I think it would be better to translate the EBCDIC x15 into an ASCII
CarriageReturn or LineFeed.

address@hidden:~ > hexdump hello.C
0000000 157b 8995 8393 a484 8540 4c89 96a2 a399
0000010 8581 944b 886e 1515 8995 a340 9481 8995
0000020 4d5d c015 4040 8396 a4a3 4c4c 7fe0 9588
0000030 8593 9396 40a6 9699 9384 e095 7f5e 1540
0000040 4099 85a3 a499 9540 f05e 15d0 1500

address@hidden:~ > hexdump -c hello.Ca
0000000 205   #   i   n   c   l   u   d   e       <   i   o   s   t   r
0000010   e   a   m   .   h   > 205 205   i   n   t       m   a   i   n
0000020   (   )   { 205           c   o   u   t   <   <   "   \   n   h
0000030   e   l   l   o       w   o   r   l   d   \   n   "   ; 205
0000040       r   e   t   u   r   n       0   ; 205   } 205
000004d

address@hidden:~ > hexdump hello.Ca
0000000 8523 696e 636c 7564 6520 3c69 6f73 7472
0000010 6561 6d2e 683e 8585 696e 7420 6d61 696e
0000020 2829 7b85 2020 636f 7574 3c3c 225c 6e68
0000030 656c 6c6f 2077 6f72 6c64 5c6e 223b 8520
0000040 2072 6574 7572 6e20 303b 857d 8500

     I'd appreciate any comments you might have on this. I would try to
patch it myself (since I'm sure it's a fairly trivial change) but at the
moment my group has not completely worked out the legal implications of me
working with GPL code (although I will be releasing some testing code I
have written as GPL as soon as they do).
     Thanks,
     j


Jay Huie
zSeries Linux System Test
address@hidden
(845) 435-8164


(See attached file: hello.C)

(See attached file: hello.Ca)

Attachment: hello.C
Description: Binary data

Attachment: hello.Ca
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]