(is_char_class_member): Use ISDIGIT_LOCALE instead of
authorJim Meyering <jim@meyering.net>
Sat, 14 Dec 1996 05:21:51 +0000 (05:21 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 14 Dec 1996 05:21:51 +0000 (05:21 +0000)
ISDIGIT to test for characters in CC_DIGIT class.

src/tr.c

index 2fb3696..dcd40aa 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -450,7 +450,7 @@ is_char_class_member (enum Char_class char_class, unsigned int c)
       result = ISCNTRL (c);
       break;
     case CC_DIGIT:
-      result = ISDIGIT (c);
+      result = ISDIGIT_LOCALE (c);
       break;
     case CC_GRAPH:
       result = ISGRAPH (c);