|
2001-04-23
| ||
| 02:16 | • Ticket [218789ffff] "string compare -nocase" slightly case sensitive</... artifact: 4ec9439195 user: dgp | |
|
2000-10-26
| ||
| 08:29 | • Closed ticket [218789ffff]. artifact: 218fe493f8 user: welch | |
| 01:05 | • New ticket [218789ffff]. artifact: 1e9bbc1e02 user: nobody | |
"string compare -nocase" slightly case sensitive
Closed / Fixed218789ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:05:23
OriginalBugID: 2135 Bug
Version: 8.1.1
SubmitDate: '1999-06-02'
LastModified: '1999-07-01'
Severity: LOW
Status: Released
Submitter: techsupp
ChangedBy: foster
OS: Other
Machine: NA
FixedDate: '1999-06-02'
FixedInVersion: 8.2b1
ClosedDate: '2000-10-25'
Name:
Peter Spjuth
ObservedBehavior:
% string compare B a
-1
% string compare -nocase B a
-1
DesiredBehavior:
The last command should return 1
Patch:
*** tclUtf.c.orig Wed Jun 02 19:55:08 1999
--- tclUtf.c Wed Jun 02 20:31:40 1999
***************
*** 1135,1142 ****
cs += Tcl_UtfToUniChar(cs, &ch1);
ct += Tcl_UtfToUniChar(ct, &ch2);
if ((ch1 != ch2) &&
! (Tcl_UniCharToLower(ch1) != Tcl_UniCharToLower(ch2))) {
! return (ch1 - ch2);
}
}
return 0;
--- 1135,1143 ----
cs += Tcl_UtfToUniChar(cs, &ch1);
ct += Tcl_UtfToUniChar(ct, &ch2);
if ((ch1 != ch2) &&
! ((ch1 = Tcl_UniCharToLower(ch1)) !=
! (ch2 = Tcl_UniCharToLower(ch2)))) {
! return (ch1 - ch2);
}
}
return 0;
PatchFiles:
tclUtf.c
06/02/1999 13:20 - stanton - Applied patch.
welch Closed ticket [218789ffff].
[History diff]2000-10-26 08:29:15
dgp Ticket [218789ffff]: 4 changes
[History diff]2001-04-23 02:16:15
Log in (anonymous is fine) to add a comment.