|
2017-05-02
| ||
| 23:04 | • Ticket [0e10a7197f] Bug in Tcl_UniCharToUtf status still Closed with 5 other... artifact: 03729838a1 user: aku | |
| 20:55 | • Closed ticket [0e10a7197f]. artifact: ff6c1db9a3 user: jan.nijtmans | |
| 19:53 | • New ticket [0e10a7197f]. artifact: c41d19cc92 user: gcramer | |
Bug in Tcl_UniCharToUtf
Closed / Invalid0e10a7197f61c2aa7e436edf75ed24bdfe47ef6cCreated 10 years agoUpdated 10 years ago
Descriptionhtml2017-05-02 19:53:45
Please try the following:
Tcl_UniChar uc; char buf[10]; int len = Tcl_UniCharToUtf(0, buf); Tcl_UtfToUniChar(buf, &uc);
This results into three errors:
UniCharToUtf() should return 1, and not 2.
The buffer contains "\300\200", but it should contain "\000", see FileFormat.Info.
The result "\300\200" = 0xc0 0x80 is an invalid byte sequence, every serious UTF-8 validator is rejecting this result, thus it is violating the UTF-8 standard, see RFC3629.
jan.nijtmansplain2017-05-02 20:55:35
It's deliberate. For an explanation, see: [http://wiki.tcl.tk/14026].
akuwiki2017-05-02 23:04:38
Log in (anonymous is fine) to add a comment.