diff src/fontset.c @ 57921:a17e7dae99c0

(fontset_pattern_regexp): If '*' is preceded by '\', treat it as a literal character.
author Kenichi Handa <handa@m17n.org>
date Thu, 04 Nov 2004 02:26:43 +0000
parents b935fc1cb542
children 678d2c0d522e e24e2e78deda
line wrap: on
line diff
--- a/src/fontset.c	Wed Nov 03 21:55:28 2004 +0000
+++ b/src/fontset.c	Thu Nov 04 02:26:43 2004 +0000
@@ -796,7 +796,7 @@
 	{
 	  if (*p0 == '-')
 	    ndashes++;
-	  else if (*p0 == '*')
+	  else if (*p0 == '*' && p0 > SDATA (pattern) && p0[-1] != '\\')
 	    nstars++;
 	}
 
@@ -811,7 +811,7 @@
       *p1++ = '^';
       for (p0 = (char *) SDATA (pattern); *p0; p0++)
 	{
-	  if (*p0 == '*')
+	  if (*p0 == '*' && p0 > SDATA (pattern) && p0[-1] != '\\')
 	    {
 	      if (ndashes < 14)
 		*p1++ = '.';