Tcl Library Source Code

View Ticket
Login
Ticket UUID: 1897841
Title: nameprep test 5 fails
Type: Bug Version: None
Submitter: lvirden Created on: 2008-02-20 13:39:05
Subsystem: stringprep Assigned To: patthoyts
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-11-21 08:42:18
Resolution: Fixed Closed By: serhiy.storchaka
    Closed on: 2026-11-21 08:42:16
Description:
sparc solaris 9 , sun c compiler, cvs head for tcl 8.5 and tcllib:

---- nameprep-5 start

==== nameprep-5 Case folding U+2121 U+33C6 U+1D7BB FAILED
==== Contents of test case:

        list [catch {::stringprep::stringprep nameprep  [encoding convertfrom ut
f-8 $input]} res] $res
    
---- Result was:
1 prohibited_character
---- Result should have been (exact matching):
0 telc?kg?
==== nameprep-5 FAILED
User Comments: serhiy.storchaka added on 2026-11-21 08:42:18:

Fixed in Tcl by 161196f054 (Tcl 8.6.11), which made the UTF-8 decoder combine 4-byte sequences such as U+1D7BB into surrogate pairs; before that, stringprep saw the bytes as separate, prohibited characters. Verified by bisecting Tcl between 8.6.10 and 8.6.11 with stringprep.test -constraints knownBug -match nameprep-5: it fails on the parent e145652a1f and passes from 161196f054 on (also 8.6.18, 9.0, 9.1). It still fails on 8.5. The test is still marked knownBug; it should get a constraint that checks for this support instead.