diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-13 16:57:25 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-12-13 16:57:25 (GMT) |
commit | 115a32cd6ffb82a45e681c6701e9419d563cf577 (patch) | |
tree | d669c8bc5ebd94c10acf49cb7d2e21bd2e453f1c /generic/tclTest.c | |
parent | 9d07732ca0a2cffa898fcbcc3cd7036dbc0249a4 (diff) | |
parent | 56c8c7f4a2740ed010d79e0de78b0f1ed9d88c82 (diff) | |
download | tcl-115a32cd6ffb82a45e681c6701e9419d563cf577.zip tcl-115a32cd6ffb82a45e681c6701e9419d563cf577.tar.gz tcl-115a32cd6ffb82a45e681c6701e9419d563cf577.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index 71f73ac..bf55e82 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -6,10 +6,10 @@ * commands are not normally included in Tcl applications; they're only * used for testing. * - * Copyright (c) 1993-1994 The Regents of the University of California. - * Copyright (c) 1994-1997 Sun Microsystems, Inc. - * Copyright (c) 1998-2000 Ajuba Solutions. - * Copyright (c) 2003 by Kevin B. Kenny. All rights reserved. + * Copyright © 1993-1994 The Regents of the University of California. + * Copyright © 1994-1997 Sun Microsystems, Inc. + * Copyright © 1998-2000 Ajuba Solutions. + * Copyright © 2003 Kevin B. Kenny. All rights reserved. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. @@ -6974,8 +6974,10 @@ TestUtfNextCmd( /* Run Tcl_UtfNext with many more possible bytes at src[end], all should give the same result */ result = Tcl_UtfNext(buffer + 1); if (first != result) { - first = buffer; - break; + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "Tcl_UtfNext is not supposed to read src[end]\n" + "Different result when src[end] is %#x", UCHAR(p[-1]))); + return TCL_ERROR; } } |