#497868 coreutils: Please add flags to base64 for drop-in compatibility with fourmilab's binary

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
Daniel Kahn Gillmor
Date:
2025-01-23 17:57:01 UTC
Severity:
wishlist
Tags:
#497868#5
Date:
2008-09-05 00:05:05 UTC
From:
To:
there is another base64 program that performs the same purpose as
base64 in coreutils:

http://www.fourmilab.ch/webtools/base64/

It accepts -e or --encode to mean the same thing that GNU base64
implies with no arguments.  It also accepts -n and --noerrcheck to
mean the same thing as GNU base64's -i and --ignore-garbage.

A friend just installed it from FreeBSD ports, and says that that
base64 also works the way GNU base64 does if no arguments are
supplied, though the man page [0] isn't clear on that.

If GNU base64 just accepted (and ignored) -e and --encode arguments,
and treated -n and --noerrcheck as synonyms for -i, then scripts
written to invoke fourmilab's base64 could use GNU's instead.

Attached is a patch that should handle it.  I didn't update the usage
output because it seems like a lot of noise, but i did get the info
docs.  It's not clear to me if the man pages need touching up too, or
if they'll get re-genned from info somehow.

Thanks for maintaining coreutils in debian!
iQIVAwUBSMB3rMzS7ZTSFznpAQI3ZA//TkzMpDtu/SCLDy23yQT/89mCJ6+2Tqkn
EAs9I2WQ8o8lkhvNTcTpv/3+zw15f53BzfBj9VvOhoRtAgBbEptl3Vswi+tKTXJh
j3y5aKIY7BPquVBfCJn/8B0sWLL7qKgdFmjMHUBjX5AhRJvXTv3Inbw7mB18bFg7
SjZR3Z3/9Wdqa7ARJzZyEbyg+rGSXGBHhz8+G+4PziyB0oCPqiXZXFu73z4xo53p
EDk2Zt7HwiHUDiH913bj6KuWrtC4oFhl8fwRUTsGfiEOe/nyBo02PSehEJNX//nL
IfxiAqgCyu2e6PMsbTmV60QqfiNUyKHE90k+H1BBLEbhJ5gKx5HTD+kWzqGA4XLw
FPtEhyz5hhyFu8abc2DLmugDjRE7pxtnCLOVZ7LAbIRnKeefsKs6RAcx6tCkDSrw
rBy3F0IbqnjzWVX3OJ6lRDO5oXfg/Zqi63+/H4pJP9bkK9YGvFJxZvLY4snw1p0x
VJ0BgvM/5CmoWsYEYESL6JC9aCAlxJ+6QvtkDdftQP7RMeiA1RTastEg9bfy+GXZ
eA3KkCMqVFgbXAYFROz+/z4IawLkz1M4JZolqxsuw7OBv5pHjmexuUkwwRog+4Xf
5niEkspvUl9my8tcJubcNZ9gFziLszc6BMxdygLo/7BUIZRm1gusUrQhwUX8qeuy
UFBj6SKALqU=
=XV4P
-----END PGP SIGNATURE-----

#497868#10
Date:
2025-01-23 17:52:42 UTC
From:
To:
Control: tags -1 = wontfix
[..]

FreeBSD in the meantime switched to another implementation, and the
options taken by the three implementations are so divergent that I
think it is unreasonable to expect any of them to accept the
other's.

Untagging patch and tagging wontfix then, as I don't think its
useful anymore.