projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35b31b
)
(print_it): Don't assume char is unsigned.
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 9 Jul 2006 17:07:12 +0000
(17:07 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 9 Jul 2006 17:07:12 +0000
(17:07 +0000)
src/stat.c
patch
|
blob
|
history
diff --git
a/src/stat.c
b/src/stat.c
index
8b8f89a
..
4c6047c
100644
(file)
--- a/
src/stat.c
+++ b/
src/stat.c
@@
-653,13
+653,13
@@
print_it (char const *format, char const *filename,
putchar (esc_value);
--b;
}
- else if (*b == 'x' &&
ISXDIGIT (b[1]
))
+ else if (*b == 'x' &&
isxdigit (to_uchar (b[1])
))
{
int esc_value = hextobin (b[1]); /* Value of \xhh escape. */
/* A hexadecimal \xhh escape sequence must have
1 or 2 hex. digits. */
++b;
- if (
ISXDIGIT (b[1]
))
+ if (
isxdigit (to_uchar (b[1])
))
{
++b;
esc_value = esc_value * 16 + hextobin (*b);