From 2bcf7e034b2266cebf2d31c24bc4bc07ad10097e Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 19 Aug 1995 22:08:38 +0000 Subject: Fix LEGAL_GRADE determination, isalnum can return true when national environment is active --- gnu/libexec/uucp/common_sources/uuconf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/libexec') diff --git a/gnu/libexec/uucp/common_sources/uuconf.h b/gnu/libexec/uucp/common_sources/uuconf.h index 48cf9cd44139..a19e01c9ba3c 100644 --- a/gnu/libexec/uucp/common_sources/uuconf.h +++ b/gnu/libexec/uucp/common_sources/uuconf.h @@ -563,7 +563,7 @@ struct uuconf_dialer #define UUCONF_GRADE_LOW ('z') /* Whether a character is a legal grade (requires ). */ -#define UUCONF_GRADE_LEGAL(b) (isalnum ((unsigned) (b))) +#define UUCONF_GRADE_LEGAL(b) (isascii (BUCHAR (b)) && isalnum (BUCHAR (b))) /* Return < 0 if the first grade should be done before the second grade, == 0 if they are the same, or > 0 if the first grade should -- cgit v1.3