]> git.eshelyaron.com Git - emacs.git/commitdiff
(xstrlwr): Don't use tolower for non-ASCII characters.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 6 Sep 2005 08:08:08 +0000 (08:08 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Tue, 6 Sep 2005 08:08:08 +0000 (08:08 +0000)
src/ChangeLog
src/xfaces.c

index 44f8892668c75d265ea95b677e7f32a3078fbb18..6cb9258e1aebf667f2ab3a6d94fd87c1ce648482 100644 (file)
@@ -1,3 +1,19 @@
+2005-09-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
+
+       * 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  <rms@gnu.org>
 
        * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
index bf8e00267497fad0c731c5eccd57eca19f6d2856..9345af1364a1cf89d40e323c9bf8ca1c892131d7 100644 (file)
@@ -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;
 }