Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1e9bbc1e022f8b4204a760bd1eab8794b49161e8
Ticket: 218789ffffffffffffffffffffffffffffffffff
"string compare -nocase" slightly case sensitive
User & Date: nobody on 2000-10-26 01:05:23
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
  4. foundin changed to: "final: 8.1.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: ""string compare -nocase" slightly case sensitive"
  11. type changed to: "Bug"