diff options
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r-- | coreutils/tr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c index d89b80bec..6d4cb4a14 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -153,7 +153,7 @@ static unsigned expand(const char *arg, char **buffer_p) | |||
153 | } | 153 | } |
154 | if (j == CLASS_punct || j == CLASS_cntrl) { | 154 | if (j == CLASS_punct || j == CLASS_cntrl) { |
155 | for (i = '\0'; i < ASCII; i++) { | 155 | for (i = '\0'; i < ASCII; i++) { |
156 | if ((j == CLASS_punct && isprint(i) && !isalnum(i) && !isspace(i)) | 156 | if ((j == CLASS_punct && isprint_asciionly(i) && !isalnum(i) && !isspace(i)) |
157 | || (j == CLASS_cntrl && iscntrl(i)) | 157 | || (j == CLASS_cntrl && iscntrl(i)) |
158 | ) { | 158 | ) { |
159 | buffer[pos++] = i; | 159 | buffer[pos++] = i; |