Overview
| Artifact ID: | 671304cb3273df5ec36ad59567b888a06f26c1457bb60751a716dd61c5aa313e |
|---|---|
| Ticket: | e617e8a71a00496e9ec682caa1b4e7b5b98c55a7
comparing UTF-16 strings doesn't account for surrogates |
| User & Date: | dgp on 2020-04-27 21:14:27 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
==== utf-25.5 Tcl_UniCharNcasecmp FAILED ==== Contents of test case: teststringobj set 1 $one teststringobj set 2 $two teststringobj maxchars 1 teststringobj maxchars 2 set result [string compare -nocase [teststringobj get 1] [teststringobj get 2]] if {$result eq [string map {< -1 = 0 > 1} $order]} { set result ok } else { set result "'$one' should be $order '$two' (no case)" } set result ---- Result was: '' should be < '𐀀' (no case) ---- Result should have been (exact matching): ok ==== utf-25.5 FAILED ==== utf-25.6 Tcl_UniCharNcasecmp FAILED ==== Contents of test case: teststringobj set 1 $one teststringobj set 2 $two teststringobj maxchars 1 teststringobj maxchars 2 set result [string compare -nocase [teststringobj get 1] [teststringobj get 2]] if {$result eq [string map {< -1 = 0 > 1} $order]} { set result ok } else { set result "'$one' should be $order '$two' (no case)" } set result ---- Result was: '' should be < '𐀀' (no case) ---- Result should have been (exact matching): ok ==== utf-25.6 FAILED - foundin changed to: "8.7"
- is_private changed to: "0"
- login: "dgp"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "44. UTF-8 Strings"
- title changed to:
comparing UTF-16 strings doesn't account for surrogates
- type changed to: "Bug"