mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-07 21:31:17 +02:00
Merge of 23219: Fix lower casing of option names in some locales.
This commit is contained in:
parent
31e0eee234
commit
56d34005d5
1 changed files with 8 additions and 1 deletions
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue