Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5c6a22fbef19dcdecb59571682bde956953ab40b
Ticket: 735364ffffffffffffffffffffffffffffffffff
Imprecise description of binary scan char 'a'
User & Date: patthoyts on 2003-05-13 16:32:03
Changes

  1. icomment:
    Logged In: YES 
    user_id=202636
    
    Lets illustrate this:
    set s "\u266b\u266a" ;# two unicode characters.
    string length $s  -> 2
    string bytelen $s   -> 6 (ok counting nul terminator as well)
    binary scan $s c* r   -> 1
    set r         -> 107 106  - so just the low byte of each
    character
    binary scan %s a* r  ->  1
    set r         -> kj  - ascii representation of the low byte
    of each char.
    
    Maybe I'm missing something to do with encodings?
    
    
  2. login: "patthoyts"
  3. mimetype: "text/plain"
  4. username: "patthoyts"