Thread (5 messages) flat view 5 messages, 4 authors, 2016-06-15

Re: [PATCH] bundle: fix wrong check of read_header()'s return value & add tests

From: Mark Levedahl <hidden>
Date: 2016-06-15 22:42:58

Possibly related (same subject, not in this thread)

Johannes Schindelin wrote:
IIRC there was a problem when a file was detected to be text, but 
continued to be binary. Mark?

Ciao,
Dscho

  
The problem occurs with constructs like

echo "some text stuff"  > file
echo "some binary stuff" >> file

The second write, being an append, ends up executed in a forked process 
where file was opened by the parent, and unfortunately auto-detected as 
a text file, such that the write from the child process ends up mangling 
any crlf in the stream. This occurs regardless of the defined mount type 
and other cygwin flags. It is definitely a bug, but is attributed to 
looseness in POSIX with noone claiming ownership to fix.

However, the above bug is not triggered in the construct mentioned by Junio.

Mark
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help