Mercurial > emacs
changeset 65347:307b8f7742fe
(xstrlwr): Don't use tolower for non-ASCII characters.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Tue, 06 Sep 2005 08:07:45 +0000 |
parents | 88cf9abcfe60 |
children | 2061c57aa73f |
files | src/xfaces.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfaces.c Tue Sep 06 08:07:32 2005 +0000 +++ b/src/xfaces.c Tue Sep 06 08:07:45 2005 +0000 @@ -835,7 +835,10 @@ 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; }