Fossil

Check-in [f23e90da]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the fossil_strcmp() routine so that it compares strings in the correct order even if some of the characters have their high-order bits set. Ticket [5982aa506467d].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f23e90da8ac8a5ab59e8c246ea53645a39b3bbf8
User & Date: drh 2011-06-29 11:20:34
References
2011-06-30
03:29 Ticket [9a64ad5d] Fossil new version doesn't understand utf-8 characters for filenames status still Open with 2 other changes artifact: c2b27c78 user: anonymous
Context
2011-06-29
11:23
Fix broken hyperlink on ticket history. Ticket [53ed528478dbc42]. check-in: 082c02a8 user: drh tags: trunk
11:20
Fix the fossil_strcmp() routine so that it compares strings in the correct order even if some of the characters have their high-order bits set. Ticket [5982aa506467d]. check-in: f23e90da user: drh tags: trunk
2011-06-28
00:17
Fix a missing dependency in the makefiles. Ticket [e5b941cb0c90ba] check-in: 5392b5c2 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/printf.c.

857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
    return +1;
  }else{
    int a, b;
    do{ 
      a = *zA++;
      b = *zB++;
    }while( a==b && a!=0 );
    return a - b;
  }
}

/*
** Case insensitive string comparison.
*/
int fossil_strnicmp(const char *zA, const char *zB, int nByte){







|







857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
    return +1;
  }else{
    int a, b;
    do{ 
      a = *zA++;
      b = *zB++;
    }while( a==b && a!=0 );
    return ((unsigned char)a) - (unsigned char)b;
  }
}

/*
** Case insensitive string comparison.
*/
int fossil_strnicmp(const char *zA, const char *zB, int nByte){