Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c4f3dda2afc1bf3342ae6ba637af88cc30976e680a9b811ac67311ef06fa1f46
Ticket: d19fe0a5bf54c97217eaba4b28a2c80cf4d16c13
Handling incomplete byte sequences for utf-16/utf-32
User & Date: jan.nijtmans on 2023-02-21 16:22:37
Changes

  1. assignee changed to: "jan.nijtmans"
  2. icomment:
    I known that 8.6 is the "gold standard", but in this case the 8.6 behavior is not reasonable at all. We could discuss whether \xFFFD or '?' should be output. So, when there is doubt, keep it as-is. I have no doubt that \xFFFD is the 'right' thing to do here.
    
    In this case, silently removing bytes is not described anywhere in the documentation, and no other encoder/decoder does that. So it's 100% defendable that this is a bug in 8.6. Bugs can be fixed, always.
    
    Thanks for noticing this!
    
  3. login: "jan.nijtmans"
  4. mimetype: "text/x-fossil-wiki"