1 # Fix keyword handling to accept alphanumerics, not just alphabetics.
2 # Thanks to Branden Robinson for this fix.
3 diff -ruN cvs-1.12.13-old/src/rcs.c cvs-1.12.13/src/rcs.c
4 --- cvs-1.12.13-old/src/rcs.c 2005-09-28 23:25:59.000000000 +0800
5 +++ cvs-1.12.13/src/rcs.c 2006-02-26 17:58:32.000000000 +0800
6 @@ -3680,13 +3680,18 @@
7 srch_len -= (srch_next + 1) - srch;
10 - /* Look for the first non alphabetic character after the '$'. */
12 + * Accept alphanumerics, not just alphabetics. XFree86, anyone?
13 + * Branden Robinson Sat, 7 Sep 2002 02:04:59 -0500
16 + /* Look for the first non alphanumeric character after the '$'. */
17 send = srch + srch_len;
18 for (s = srch; s < send; s++)
19 - if (! isalpha ((unsigned char) *s))
20 + if (! isalnum ((unsigned char) *s))
23 - /* If the first non alphabetic character is not '$' or ':',
24 + /* If the first non alphanumeric character is not '$' or ':',
25 then this is not an RCS keyword. */
26 if (s == send || (*s != '$' && *s != ':'))