From 56d34005d52dba73ec7b08b06583a28ce67fb98c Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Mon, 12 Nov 2007 04:33:49 +0000 Subject: Merge of 23219: Fix lower casing of option names in some locales. --- Src/options.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/options.c b/Src/options.c index 1cf39bbbc..5d47ccdcb 100644 --- a/Src/options.c +++ b/Src/options.c @@ -589,7 +589,14 @@ optlookup(char const *name) if (*t == '_') chuck(t); else { - *t = tulower(*t); + /* + * Some locales (in particular tr_TR.UTF-8) may + * have non-standard mappings of ASCII characters, + * so be careful. Option names must be ASCII so + * we don't need to be too clever. + */ + if (*t >= 'A' && *t <= 'Z') + *t = (*t - 'A') + 'a'; t++; } -- cgit 1.4.1