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