Fix unwanted binary blobs in translating stream, and return zero length reads after EOF.
Fix unwanted binary blobs in translating stream, and return zero length
reads after EOF.

* subversion/libsvn_subr/subst.c
  (translate_chunk): Mark buffers as flushed after flushing.
  (translated_stream_read): Correctly calculate remaining number of
  bytes, in order to not return bytes past end of buffer.

Review by: kfogel


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@857814 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion