Removed the non-LOCALE character code and the #ifdefs and simplified.
[mmh] / sbr / gans.c
index 2b9a015..c90bfef 100644 (file)
@@ -25,13 +25,7 @@ gans(char *prompt, struct swit *ansp)
                        if (i == EOF)
                                return 0;
                        if (cp < &ansbuf[sizeof ansbuf - 1]) {
-#ifdef LOCALE
-                               i = (isalpha(i) && isupper(i)) ? tolower(i) : i;
-#else
-                               if (i >= 'A' && i <= 'Z')
-                                       i += 'a' - 'A';
-#endif
-                               *cp++ = i;
+                               *cp++ = tolower(i);
                        }
                }
                *cp = '\0';