Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c41d19cc92f80293af4e2c6a5fb5018943e54059
Ticket: 0e10a7197f61c2aa7e436edf75ed24bdfe47ef6c
Bug in Tcl_UniCharToUtf
User & Date: gcramer on 2017-05-02 19:53:45
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. 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>
    
  5. foundin changed to: "8.6/8.7"
  6. is_private changed to: "0"
  7. login: "gcramer"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9b7155594aadef44d10a978838b8fe108cdafdd1"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "gcramer"
  14. subsystem changed to: "44. UTF-8 Strings"
  15. title changed to: "Bug in Tcl_UniCharToUtf"
  16. type changed to: "Bug"