diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-12 11:08:43 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-12 11:08:43 (GMT) |
commit | 9cc2036c6436600b0dea8f4c153fa7a71fb1feeb (patch) | |
tree | 9f70d3bc02f25d998c6f0e525936d4f7b771ca0d /generic | |
parent | c1d202b1121381431982ea7d40375e9ce0651f41 (diff) | |
parent | 6256643a39bd87d514f7c7455652ace83dd7f95c (diff) | |
download | tcl-9cc2036c6436600b0dea8f4c153fa7a71fb1feeb.zip tcl-9cc2036c6436600b0dea8f4c153fa7a71fb1feeb.tar.gz tcl-9cc2036c6436600b0dea8f4c153fa7a71fb1feeb.tar.bz2 |
Merge testcase cleanup. Make Tcl_UtfPrev() behave the same for any TCL_UTF_MAX value, since we didn't figure out yet how it should behave for TCL_UTF_MAX>3.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclUtf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c index f2d2b3b..730a8b7 100644 --- a/generic/tclUtf.c +++ b/generic/tclUtf.c @@ -887,12 +887,12 @@ Tcl_UtfPrev( } while (trailBytesSeen < 3); /* - * We've seen 3 (or 4) trail bytes, so we know there will not be a + * We've seen 3 trail bytes, so we know there will not be a * properly formed byte sequence to find, and we can stop looking, - * accepting the fallback (for TCL_UTF_MAX > 4) or just go back as - * far as we can. + * accepting the fallback. */ - return src - 3; + + return fallback; } /* |