bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] [PATCH 2/2] tar: set stdin/stdout to binary mode on OS/2 i


From: Paul Eggert
Subject: Re: [Bug-tar] [PATCH 2/2] tar: set stdin/stdout to binary mode on OS/2 if not console
Date: Mon, 17 Nov 2014 20:36:25 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

That patch doesn't look right to me. First, the "#if MSDOS" and "#if defined(__OS2__)" sections of code have a lot in common, and this common part shouldn't be duplicated. Second, it really should be using the binary-io module, as I mentioned earlier. Third and most important, whether a file descriptor should be placed into binary mode ought to be a function of whether binary data is being read or written, not whether the file is a terminal. Not every use of "tar" writes binary data to stdout.



reply via email to

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