summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2019-01-21 21:47:49 +0200
committerArnold D. Robbins <arnold@skeeve.com>2019-01-21 21:47:49 +0200
commit378de9aa9e73d44d0172947c38be67c0bd78a0b0 (patch)
tree27ff067d0f9599a0b0ebfb41491147878d61ee6a /symbol.c
parenta15d26988f7878d57c85ab99c17a0085fe632288 (diff)
downloadgawk-378de9aa9e73d44d0172947c38be67c0bd78a0b0.tar.gz
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/symbol.c b/symbol.c
index 94d66fe8..5092a4a9 100644
--- a/symbol.c
+++ b/symbol.c
@@ -965,10 +965,14 @@ free_bcpool(INSTRUCTION_POOL *pl)
/* is_all_upper --- return true if name is all uppercase letters */
-static bool
+/*
+ * DON'T use isupper(), it's locale aware!
+ */
+
+bool
is_all_upper(const char *name)
{
- for (; *name != '\0'; name ++) {
+ for (; *name != '\0'; name++) {
switch (*name) {
case 'A': case 'B': case 'C': case 'D': case 'E':
case 'F': case 'G': case 'H': case 'I': case 'J':