Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 88077a4b4e610d2e858ff7b9f00c997bd176c9c1
Ticket: 1809298fffffffffffffffffffffffffffffffff
binary scan / scan
User & Date: nobody on 2007-10-08 07:29:03
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.4.16"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "23. [scan]"
  11. title changed to: "binary scan / scan "
  12. type changed to: "Bug"