Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9c2ea6945a3eaac65132a1ae78b8e448048ae76f
Ticket: 218024ffffffffffffffffffffffffffffffffff
format command does not appear able to insert 16 bit charact
User & Date: nobody on 2000-10-26 00:52:18
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1173 RFE
    Version: 8.1b1
    SubmitDate: '1999-02-09'
    LastModified: '1999-02-10'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: pat
    OS: Windows NT
    OSVersion: 4.0sp3
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-02-10'
    
    
    Name:
    Gerald W. Lester
    
    Extensions:
    N/A
    
    CustomShell:
    None
    
    DesiredBehavior:
    According to the 8.1b1 documentation, the %c specifier in the format command inserts an 8 bit character, however there appears no specifier to insert a 16 bit character (note %u is used to insert an unsigned integer).
    
    
    
    Work around:
    
       puts [subst -nocommands -novariables [format {...\u%d...} $char]]
    
    instead of:
    
       puts [format {...%U...} $char]
    
    02/10/1999 10:54 - pat - Comment from Scott Stanton:
    
    The documentation is incorrect.  Format inserts a 16-bit Unicode character 
    into the string (in UTF-8 form).  So you should be able to say something like: 
        set x \u3254 
        set y [format {....%c....} $x] 
    I have updated the documentation to reflect this behavior.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1b1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    format command does not appear able to insert 16 bit charact
    
  11. type changed to: "Bug"