From 9655b4049320773197f466b159189a731218902f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 6 Sep 2005 08:08:08 +0000 Subject: [PATCH] (xstrlwr): Don't use tolower for non-ASCII characters. --- src/ChangeLog | 16 ++++++++++++++++ src/xfaces.c | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 44f8892668c..6cb9258e1ae 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,19 @@ +2005-09-06 YAMAMOTO Mitsuharu + + * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs. + (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p) + (xlfdpat_block_match_1, xlfdpat_match): New functions. + (xlfdpat_block_match): New macro. + (mac_to_x_fontname): Don't use tolower for non-ASCII characters. + (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0. + (add_font_name_table_entry): Increase font_name_table_size more + rapidly. + (mac_c_string_match): Remove function. + (mac_do_list_fonts): Use XLFD pattern match instead of regular + expression match. + + * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters. + 2005-09-03 Richard M. Stallman * xdisp.c (redisplay_internal): Make UPDATED as long as needed. 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; } -- 2.39.5