Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
23:11 • Ticket [218608ffff] string first fails if character>0x80 status still Clo... artifact: 48955e7104 user: dgp
2000-10-26
08:25 • Closed ticket [218608ffff]. artifact: 684f363702 user: welch
01:03 • New ticket [218608ffff]. artifact: 84beaeb6bd user: nobody

string first fails if character>0x80

Closed / Fixed218608ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:02
OriginalBugID: 1434 Bug
Version: 8.0.4
SubmitDate: '1999-03-04'
LastModified: '1999-08-07'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Macintosh
OSVersion: 8.0.4
Machine: Power PC
FixedDate: '1999-08-07'
FixedInVersion: 8.1
ClosedDate: '2000-10-25'


Name:
Steven Ryan

Extensions:
none

CustomShell:
none

ReproducibleScript:
#e' = opt-e + e on Macintosh

string first e' e'



ObservedBehavior:
returns -1



DesiredBehavior:
returns 0





In tclCmdMZ.c, Tcl_StringObjCmd, case STR_FIRST,

p = memchr(p, *string, (unsigned)(end-p));

should instead be something like

p = memchr(p, ((unsigned char*)string)[0], (unsigned)(end-p));

--
This problem was fixed with the Unicode 8.1+. 
-- 08/07/1999 hobbs
welch Closed ticket [218608ffff]. [History diff]2000-10-26 08:25:10
dgp Ticket [218608ffff]: 3 changes [History diff]2001-04-16 23:11:00
Log in (anonymous is fine) to add a comment.