emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#17422: closed (dd giving different results between


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17422: closed (dd giving different results between UNIX and LINUX)
Date: Wed, 07 May 2014 01:45:02 +0000

Your message dated Tue, 06 May 2014 18:43:50 -0700
with message-id <address@hidden>
and subject line Re: bug#17422: dd giving different results between UNIX and 
LINUX
has caused the debbugs.gnu.org bug report #17422,
regarding dd giving different results between UNIX and LINUX
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17422: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17422
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: dd giving different results between UNIX and LINUX Date: Tue, 6 May 2014 09:13:37 -0400

Hello,

 

I am converting some UNIX programs to Linux.

 

One of the programs does the following:

 dd if=20140430.1.EBC.TXT of=tmpUNIX.dat cbs=152 conv=ascii

 

In Solaris I get this:

461614+1 records in

368585+1 records out

 

In Linux I get this:

461614+1 records in

461614+1 records out

236346472 bytes (236 MB) copied, 11.4938 seconds, 20.6 MB/s

 

The cksum done on 20140430.1.EBC.TXT yields the same result on both Linux and UNIX.

 

 

uname –a

SunOS dsa0401 5.10 Generic_142900-03 sun4v sparc SUNW,SPARC-Enterprise-T5220

 

Linux dla0614.ccrt.us 2.6.18-371.1.2.el5 #1 SMP Tue Oct 22 11:40:34 CDT 2013 x86_64 x86_64 x86_64 GNU/Linux

 

Any help would be appreciated.

 

Thanks,

Don



----- CONFIDENTIALITY NOTICE -----
This message contains PRIVILEGED and CONFIDENTIAL information that is intended
only for use by the named recipient. If you are not the named recipient, any
disclosure, dissemination, or action based on the contents of this message is
prohibited. In such case please notify us and destroy and delete all copies of
this transmission. Thank you.

--- End Message ---
--- Begin Message --- Subject: Re: bug#17422: dd giving different results between UNIX and LINUX Date: Tue, 06 May 2014 18:43:50 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 Thanks for reporting that bug. Who would have thought that after all these years, GNU 'dd' would still be mishandling EBCDIC conversion? The GNU dd implementation of conv=ascii is clearly incorrect. I installed the attached patch. Please give it a try if you can. I am closing the bug report for convenience, but we can reopen it if the patch does not work for you.

Attachment: 0001-dd-fix-conv-ascii-conv-ebcdic-conv-ibm-to-match-POSI.patch
Description: Text document


--- End Message ---

reply via email to

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