summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/options.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ef7889321..aea1c72f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2007-12-19  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 24301: missed a case for the lower-casing fix in 23219.
+
 	* 24298: Tonguc Yumruk: Functions/Misc/is-at-least: use
 	emulate -L for consistency.
 
diff --git a/Src/options.c b/Src/options.c
index b46986495..14b730ea5 100644
--- a/Src/options.c
+++ b/Src/options.c
@@ -571,7 +571,9 @@ bin_setopt(char *nam, char **args, UNUSED(Options ops), int isun)
 		if (*t == '_')
 		    chuck(t);
 		else {
-		    *t = tulower(*t);
+		    /* See comment in optlookup() */
+		    if (*t >= 'A' && *t <= 'Z')
+			*t = (*t - 'A') + 'a';
 		    t++;
 		}