|
2006-08-28
| ||
| 23:05 | • Closed ticket [1547786fff]: parseExpr-21.41 fails plus 7 other changes artifact: 8f61a54272 user: dgp | |
| 20:17 | • Ticket [1547786fff]: 5 changes artifact: ddc74fdcfe user: dgp | |
| 10:04 | • New ticket [1547786fff]. artifact: 85eca8c0fc user: das | |
parseExpr-21.41 fails
Closed / Fixed1547786fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-08-28 10:04:31
On Darwin, test parseExpr-21.41 fails with current HEAD due to an
apparent utf-8 bug in the call to TclFormatToErrorInfo() in Tcl_ParseExpr
():
scratch.string is truncated to limit-3 without regard to multi-byte utf-8
sequences, the 'Â' character in the error message below corresponds to
the first byte of a 0xc2a7 sequence:
==== parseExpr-21.41 error messages FAILED
==== Contents of test case:
catch {expr [format {"%s" @ 0} [string repeat \u00a7 25]]} m o
dict get $o -errorinfo
---- Result was:
invalid character "@"
in expression "...§§§§§§§§§§" @ 0"
(parsing expression ""§§§§§§§§§§Â...")
invoked from within
"expr [format {"%s" @ 0} [string repeat \u00a7 25]]"
---- Result should have been (exact matching):
invalid character "@"
in expression "...§§§§§§§§§§" @ 0"
(parsing expression ""§§§§§§§§§§...")
invoked from within
"expr [format {"%s" @ 0} [string repeat \u00a7 25]]"
==== parseExpr-21.41 FAILED
dgpplain2006-08-28 20:17:31
Logged In: YES user_id=80530 Work is in progress on ObjPrintfVA in tclStringObj.c to make it copy only whole characters when doing %s formatting. This test is in place to measure progress on that effort.
dgpplain2006-08-28 23:05:19
Logged In: YES user_id=80530 fixed.
Log in (anonymous is fine) to add a comment.