]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: prefer c_isxdigit when that is the intent
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Oct 2023 15:45:50 +0000 (08:45 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 30 Oct 2023 07:58:03 +0000 (00:58 -0700)
commit0292a5678a19cb3f3908cf3b267aa1f18b479aac
tree3f43b67d44c22bf22d0b5b5716f66c9640acccf8
parentf7e25d5bb53e35bcdea8512dd6db07dd7e6cf452
maint: prefer c_isxdigit when that is the intent

* src/digest.c (valid_digits, split_3):
* src/echo.c (main):
* src/printf.c (print_esc):
* src/ptx.c (unescape_string):
* src/stat.c (print_it):
When the code is supposed to support only POSIX-locale hex digits,
use c_isxdigit rather than isxdigit.  Include c-ctype.h as needed.
This defends against oddball locales where isxdigit != c_isxdigit.
src/digest.c
src/echo.c
src/printf.c
src/ptx.c
src/stat.c