diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-01-22 15:30:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-01-22 15:30:54 (GMT) |
commit | b8651ae498dba4d0a1edcff000582bc06a7a8efe (patch) | |
tree | f6dc9eb4efcd8c11cba9e7f1631dcd099682faba /generic/tclCmdMZ.c | |
parent | a7072a53147e689d2c265a66e87a2f6f74c86014 (diff) | |
parent | 11fcad9b1df2c2cf7d5ada8feb565c97b9777fef (diff) | |
download | tcl-b8651ae498dba4d0a1edcff000582bc06a7a8efe.zip tcl-b8651ae498dba4d0a1edcff000582bc06a7a8efe.tar.gz tcl-b8651ae498dba4d0a1edcff000582bc06a7a8efe.tar.bz2 |
merge trunkrfe_3473670
expand all unicode tables and tools to eventually handle the
unicode chars > 0xffff (if UTF_MAX_CHAR > 3)
Diffstat (limited to 'generic/tclCmdMZ.c')
-rw-r--r-- | generic/tclCmdMZ.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index ccf3bc6..27e4055 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -378,7 +378,7 @@ Tcl_RegexpObjCmd(dummy, interp, objc, objv) while (1) { match = Tcl_RegExpExecObj(interp, regExpr, objPtr, offset /* offset */, numMatchesSaved, eflags - | ((offset > 0 && + | ((offset > 0 && offset < stringLength && (Tcl_GetUniChar(objPtr,offset-1) != (Tcl_UniChar)'\n')) ? TCL_REG_NOTBOL : 0)); |