Skip to content
Tcl Source Code History Of Ticket 1809298fff
Login

History Of Ticket 1809298fff

Artifacts Associated With Ticket 1809298fff

  1. Ticket change [88077a4b4e] (rid 131798) by nobody on 2007-10-08 07:29:03:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I have a problem when I extract datas from a binary file named gshhs_f.b from a package located on this website :
       ftp://ftp.soest.hawaii.edu/pwessel/gshhs/gshhs_1.5.zip
      The use of C demo program from :
      ftp://ftp.soest.hawaii.edu/pwessel/gshhs/gshhs_1.8_src.zip
      and an hex edit with Xemacs show a value of byte number
      35383703 to be B4 (hex), but when I read it from different ways (in tcl) the result is 7D.
      I use first a tcl script as the C demo program : it works fine until this byte. (file : cvrt2xdr.tcl).
      The line :
      54 9853 2 112.353333 135.87...... must be
      54 9908 2 ....
      (the second term is the offset of the next -55- data zone; you  can see that is wrong ;output file : return_cvr2xdr)
      I create a test script (bug.tcl;output file : return_bug) to show the problem.
      My "uname -a" result is:
      Linux 2.6.12-31mdksmp #1 SMP Fri Mar 2 10:40:41 MST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ unknown GNU/Linux
      tcl is 8.4.
      I tested it on PC 32bits and I had the same results.
      4 attached files (2 scripts and 2 output files) in a tar.gz file,
      the input file is on website (see beginning of text).
      
      thanks to answer me
      [email protected]
      
    4. foundin initialized to: "obsolete: 8.4.16"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "23. [scan]"
    11. title initialized to: "binary scan / scan "
    12. type initialized to: "Bug"
  2. Add attachment "SCAN_PB.tar.gz" [03c5a1b082] (rid 119880) by [email protected] on 2007-10-08 14:29:03.

  3. Ticket change [19dbddfb36] (rid 122864) by nobody on 2007-10-08 14:29:06:

    1. icomment:
      
      
      File Added - 248691: SCAN_PB.tar.gz
      
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  4. Ticket change [453bd064ea] (rid 99317) by dkf on 2007-10-08 17:33:31:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2007-10-08T10:33:31"
    3. closer changed to: "dkf"
    4. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      At a guess, the problem is not using [fconfigure $channel -translation binary] before reading any data. Without that, we don't warrant that we'll handle binary data correctly at all. (The immediate problem is probably a disconnect between your system encoding and iso8859-1, but the right fix is to tell Tcl that the channel is dealing with binary data. Really.)
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Works For Me"
    8. status changed to: "Pending"
    9. subsystem changed to: "12. ByteArray Object"
    10. username: "dkf"
  5. Ticket change [69a9b23a50] (rid 103288) by avl42 on 2007-10-11 19:07:38:

    1. icomment:
      Logged In: YES 
      user_id=830354
      Originator: NO
      
      If the input file is opened with [open ... r], then you
      only need to change that to [open ... rb], at least
      since 8.5... (not sure about 8.4.*)
      
      
      
      
    2. login: "avl42"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "avl42"
  6. Ticket change [894ecfd136] (rid 132005) by dkf on 2007-10-11 20:03:25:

    1. closedate changed to: "2007-10-11T13:03:25"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      The 'b' flag is an 8.5 addition. Doing an [fconfigure $chan -translation binary] afterwards is precisely equivalent (that's what the 'b' flag causes to happen internally).
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. username: "dkf"
  7. Ticket change [16d639d42e] (rid 124780) by sf-robot on 2007-10-26 09:20:10:

    1. closedate changed to: "2007-10-26T02:20:10"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"