aboutsummaryrefslogtreecommitdiff
path: root/TODO
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-01-29 10:49:10 +0000
committerRon Yorston <rmy@pobox.com>2023-01-29 11:28:19 +0000
commit33ae88c40cf56b53c06e627e0535c9c740767aa4 (patch)
tree03bb1222b1576b9290ed40e6549a3547ff83be6a /TODO
parent6295322661ac6c2ed90af69cba0003c6e37f9700 (diff)
downloadbusybox-w32-33ae88c40cf56b53c06e627e0535c9c740767aa4.tar.gz
busybox-w32-33ae88c40cf56b53c06e627e0535c9c740767aa4.tar.bz2
busybox-w32-33ae88c40cf56b53c06e627e0535c9c740767aa4.zip
diff: improve --binary implementation
Commit 82f0d19b1 (diff: implement --binary flag) was both over- complicated and incorrect. If stdin was seekable it was left in binary mode even if the --binary flag wasn't supplied. Always open files in binary mode. Only switch to text mode at the last moment, if necessary. Saves 48 bytes.
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions