Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 795259af383934ceef0619eba1ccaee464f73cb4
Ticket: 411825ffffffffffffffffffffffffffffffffff
Passing list w/UTF-8 from C can fail
User & Date: arobert3434 on 2001-03-29 12:11:24
Changes

  1. icomment:
    Logged In: YES 
    user_id=146959
    
    Thanks very much for a response and proposed solution,
    however the documentation in the man page unfortunately
    says nothing about this issue.  It only says that it is
    best to use the object versions of the result-handling
    functions because it is "significantly more efficient".
    This is hardly incentive to go and learn a framework that
    is significantly more complex at first sight when all one
    wants to do is pass a string and everything has been
    running fast enough as it is.  Since string-handling is
    said to be fully unicode-based in Tcl/Tk 8.1 and above,
    the default assumption on a developer's part is to assume
    that "string" means "internationalized, UTF-8, or what have
    you string", and that Tcl_AppendElement therefore does not
    present a problem.
    
    The real solution it seems to me is to repair the deficiency
    in TclNeedSpace(), but there may be other constraints,
    performance among them, that argue against this.  If this
    repair is not made, the documentation for Tcl_AppendElement,
    and "routines that call it" (how exactly is the typical
    Tcl/Tk end-developer supposed to know which those are)
    should be updated to reflect the fact that they should not
    be used for anything but ASCII.  Maybe there is some other
    documentation that says something about these issues, but
    it should be in the man page as well.
    
    
    
  2. login: "arobert3434"
  3. mimetype: "text/plain"
  4. username: "arobert3434"