diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-10-27 13:58:10 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-10-27 13:58:10 (GMT) |
| commit | 62abae102c8098bb04889b21315acee16f203391 (patch) | |
| tree | 5d9f0014379f16882f75aaefa34e2bbfef1de9c5 | |
| parent | ebfd2fe67080be5cdc4a6e7341fc0a20b759a53f (diff) | |
| download | tcl-62abae102c8098bb04889b21315acee16f203391.zip tcl-62abae102c8098bb04889b21315acee16f203391.tar.gz tcl-62abae102c8098bb04889b21315acee16f203391.tar.bz2 | |
Part of fix for [Bug 1810264]
| -rw-r--r-- | ChangeLog | 11 | ||||
| -rw-r--r-- | generic/regc_lex.c | 2 |
2 files changed, 8 insertions, 5 deletions
@@ -1,19 +1,22 @@ +2007-10-27 Donal K. Fellows <dkf@users.sf.net> + + * generic/regc_lex.c (lexescape): Close off one of the problems + mentioned in [Bug 1810264] + 2007-10-27 Miguel Sofer <msofer@users.sf.net> * doc/apply.n: fixed example [Bug 1811791] * doc/namespace.n: improved example [Bug 1788984] * doc/AddErrInfo.3: typo [Bug 1715087] - + * generic/tclCompile.h: * generic/tclInt.h: moved declaration of TclSetCmdNameObj from tclCompile.h to tclInt.h, reverting linker [Bug 1821159] caused by commit of 2007-10-11 (both I and gcc missed one dep). - -2007-10-27 Miguel Sofer <msofer@users.sf.net> * generic/tclVar.c: try to preserve Tcl_Objs when doing variable lookups by name, partially addressing [Bug 1793601] - + 2007-10-27 Donal K. Fellows <dkf@users.sf.net> * tools/tcltk-man2html.tcl (make-man-pages, htmlize-text) diff --git a/generic/regc_lex.c b/generic/regc_lex.c index f57779d..bc61e14 100644 --- a/generic/regc_lex.c +++ b/generic/regc_lex.c @@ -875,7 +875,7 @@ lexescape( * Ugly heuristic (first test is "exactly 1 digit?") */ - if (v->now - save == 0 || (int)c <= v->nsubexp) { + if (v->now - save == 0 || ((int) c > 0 && (int)c <= v->nsubexp)) { NOTE(REG_UBACKREF); RETV(BACKREF, (chr)c); } |
