mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 15:21:16 +02:00
Fix lower casing of option names in some locales.
This commit is contained in:
parent
ecf4321e6e
commit
ab29ab8b3f
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-03-15 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 23219: Src/options.c: Ismail Dönmez reported that lower
|
||||
casing of I to dotless i in tr_TR.UTF-8 broke option handling.
|
||||
|
||||
2007-03-14 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 23215: Completion/Unix/Command/_module: completion for
|
||||
|
|
|
@ -603,7 +603,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