View Ticket
Not logged in
Ticket UUID: 5607d6482c5b5ab21e58ed315d4c4f07bad90335
Title: strict ucs-2 never implemented (TIP #346/#656)
Type: Bug Version: 8.7b1
Submitter: jan.nijtmans Created on: 2023-02-19 10:30:08
Subsystem: 16. Commands A-H Assigned To: jan.nijtmans
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2023-02-22 08:08:23
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2023-02-22 08:08:23
Description:
Consider

% package require Tcl
8.7a6
% encoding convertto -strict ucs-2 \uDC00
Ü
% encoding convertto -strict ucs-2 \U10000
ýÿ

First example is a surrogate, second example is a code > U+FFFF. Both should throw an exception when using -strict, but this was never implemented
User Comments: jan.nijtmans added on 2023-02-22 08:08:23:

Fixed [e5cc7c86bf61aa75|here]

Closing