base64: always treat input in binary mode
commitc9e4ea6ee2007462554568f156838b0fb6d55c9a
authorEric Blake <eblake@redhat.com>
Wed, 21 Apr 2010 14:17:59 +0000 (21 08:17 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 22 Apr 2010 14:42:54 +0000 (22 08:42 -0600)
treef163c976a45c1d09fde9791829bf4e0a09a898cb
parent819265b8be20225096573d4f0e0012b59827b013
base64: always treat input in binary mode

Necessary for cygwin.  Technically, this patch is not correct,
in that it clobbers O_APPEND, but it is no different than any
other use of xfreopen to force binary mode, so all such uses
should be fixed at once in a later patch.

* src/base64.c (main): Open input in binary mode.
* THANKS: Update.
Reported by Yutaka Amanai.
THANKS
src/base64.c