diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-08-28 16:18:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-08-28 16:18:57 +0000 |
commit | 3d413d4b05005bbd4c384b60e3797caf57f120d5 (patch) | |
tree | ae6da630ac134df6f899ad827fb62d1ac46f4c2f /src/strings.c | |
parent | 28f5be122f9fc70056082b63db119b256bc029c4 (diff) | |
download | elfutils-3d413d4b05005bbd4c384b60e3797caf57f120d5.tar.gz |
Implement --enable-gconv option for configure.
Diffstat (limited to 'src/strings.c')
-rw-r--r-- | src/strings.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/strings.c b/src/strings.c index fa7efa4a..1898ac74 100644 --- a/src/strings.c +++ b/src/strings.c @@ -334,7 +334,7 @@ process_chunk_mb (const char *fname, const unsigned char *buf, off64_t to, ch = buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0]; } - if (ch <= 255 && (ch == '\t' || isprint (ch))) + if (ch <= 255 && (isprint (ch) || ch == '\t')) { ++buf; ++curlen; @@ -399,8 +399,7 @@ process_chunk (const char *fname, const unsigned char *buf, off64_t to, const unsigned char *start = buf; while (len > 0) { - if ((*buf == '\t' || isprint (*buf)) - && (! char_7bit || *buf <= 127)) + if ((isprint (*buf) || *buf == '\t') && (! char_7bit || *buf <= 127)) { ++buf; ++curlen; |