Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4a7f00b6163e5c647cdbd7e15df25fbe9b70c44f
Ticket: 411825ffffffffffffffffffffffffffffffffff
Passing list w/UTF-8 from C can fail
User & Date: dossy on 2003-08-28 06:12:20
Changes

  1. icomment:
    Logged In: YES 
    user_id=21885
    
    Your patch only included tests util-8.5 and util-8.6.  I just 
    checked HEAD and core-8-4-branch and the util.test file 
    stops at util-8.1.
    
    I'm showing the last checkin for tests/util.test as:
    
    revision 1.11
    date: 2003/07/24 16:05:24;  author: dgp;  state: Exp;  lines: 
    +37 -4
    
    I assume this means you didn't get to check your change in, 
    yet?
    
    Either way, the C test case I provided on 2003-08-25 20:37 
    passes after applying the patch, kinda.  [llength [TestCmd]] 
    == 2, but now look at what TestCmd outputs:
    
    % encoding system
    iso8859-1
    % TestCmd
    foo  bar
    
    Pushing that through "od -xc", here's the actual bytes that 
    get output:
    
    666f 6fa0 2062 6172
    f   o   o 240       b   a   r
    
    Instead of \302\240 coming back out, only \240 came back.  
    At least this is a *different* problem to solve, now.  At least 
    before it would return "foo\302\240bar" -- now, it's 
    returning "foo\240 bar" -- I'm not exactly sure which is 
    worse.  :-)
    
    However, the behavior I described on 2003-08-26 13:22 
    hasn't changed, list elements ending in \302\240 don't get 
    wrapped with {}.  Suppose I should file this as a new bug, 
    now?
    
    
    
  2. login: "dossy"
  3. mimetype: "text/plain"
  4. username: "dossy"