diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2005-09-06 08:08:08 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2005-09-06 08:08:08 +0000 |
commit | 9655b4049320773197f466b159189a731218902f (patch) | |
tree | 60678fb19ea81cc90e3970e42d3c9fa3be0e13b3 /src/xfaces.c | |
parent | 468213f1f3be48436558f3ddb07cff3bc196f1cb (diff) | |
download | emacs-9655b4049320773197f466b159189a731218902f.tar.gz |
(xstrlwr): Don't use tolower for non-ASCII characters.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r-- | src/xfaces.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index bf8e0026749..9345af1364a 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -835,7 +835,10 @@ xstrlwr (s) unsigned char *p = s; for (p = s; *p; ++p) - *p = tolower (*p); + /* On Mac OS X 10.3, tolower also converts non-ASCII characters + for some locales. */ + if (isascii (*p)) + *p = tolower (*p); return s; } |