Overview
| Artifact ID: | c41d19cc92f80293af4e2c6a5fb5018943e54059 |
|---|---|
| Ticket: | 0e10a7197f61c2aa7e436edf75ed24bdfe47ef6c
Bug in Tcl_UniCharToUtf |
| User & Date: | gcramer on 2017-05-02 19:53:45 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/html"
- comment changed to:
Please try the following: <verbatim> Tcl_UniChar uc; char buf[10]; int len = Tcl_UniCharToUtf(0, buf); Tcl_UtfToUniChar(buf, &uc); </verbatim> <p> This results into three errors: <ol> <li><p>UniCharToUtf() should return 1, and not 2. <lI><p>The buffer contains "\300\200", but it should contain "\000", see <a href="http://www.fileformat.info/info/unicode/char/0000/index.htm">FileFormat.Info</a>. <li><p>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 <a href="https://tools.ietf.org/html/rfc3629">RFC3629</a>. </ol>
- foundin changed to: "8.6/8.7"
- is_private changed to: "0"
- login: "gcramer"
- priority changed to: "5 Medium"
- private_contact changed to: "9b7155594aadef44d10a978838b8fe108cdafdd1"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "gcramer"
- subsystem changed to: "44. UTF-8 Strings"
- title changed to: "Bug in Tcl_UniCharToUtf"
- type changed to: "Bug"