mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-04 23:43:45 +08:00
97d8dcc5ca
This patch modifies basenc to prefer signed integers to unsigned, as signed are less error-prone. This patch also updates Gnulib to to latest, which updates Gnulib’s base32 and base64 modules to prefer signed to unsigned integers. * src/basenc.c: Include idx.h. (struct base2_decode_context): Use unsigned char, not unsigned for an octet that must fit in an unsigned char. (base_encode, struct base_decode_context) (base64_decode_ctx_wrapper, prepare_inbuf, base64url_encode) (base64url_decode_ctx_wrapper, base32_decode_ctx_wrapper) (base32hex_encode, base32hex_decode_ctx_wrapper, base16_encode) (base16_decode_ctx, z85_encode, Z85_HI_CTX_TO_32BIT_VAL) (z85_decoding, z85_decode_ctx, base2msbf_encode) (base2lsbf_encode, base2lsbf_decode_ctx, base2msbf_decode_ctx) (wrap_write, do_encode, do_decode, main): Prefer signed integers to unsigned. (main): Treat extremely large wrap columns as if they were infinite; that’s good enough. Since we’re now using xstrtoimax, this allows ‘-w -0’ (same as ‘-w 0’). * tests/misc/base64.pl (gen_tests): -w-0 is no longer an error. |
||
---|---|---|
.. | ||
chgrp | ||
chmod | ||
chown | ||
cp | ||
dd | ||
df | ||
du | ||
factor | ||
fmt | ||
id | ||
install | ||
ln | ||
ls | ||
misc | ||
mkdir | ||
mv | ||
pr | ||
readlink | ||
rm | ||
rmdir | ||
split | ||
tail-2 | ||
touch | ||
Coreutils.pm | ||
CuSkip.pm | ||
CuTmpdir.pm | ||
d_type-check | ||
envvar-check | ||
filefrag-extent-compare | ||
GNUmakefile | ||
init.sh | ||
lang-default | ||
local.mk | ||
no-perl | ||
other-fs-tmpdir | ||
sample-test | ||
seek-data-capable |