Artifacts Associated With Ticket 1809298fffffffffffffffffffffffffffffffff
Ticket change [88077a4b4e] (rid 131798) by nobody on 2007-10-08 07:29:03:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- 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]
- foundin initialized to: "obsolete: 8.4.16"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "23. [scan]"
- title initialized to: "binary scan / scan "
- type initialized to: "Bug"
Add attachment "SCAN_PB.tar.gz" [03c5a1b082] (rid 119880) by [email protected] on 2007-10-08 14:29:03.
Ticket change [19dbddfb36] (rid 122864) by nobody on 2007-10-08 14:29:06:
- icomment:
File Added - 248691: SCAN_PB.tar.gz
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment:
Ticket change [453bd064ea] (rid 99317) by dkf on 2007-10-08 17:33:31:
- assignee changed to: "dkf"
- closedate changed to: "2007-10-08T10:33:31"
- closer changed to: "dkf"
- 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.)
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Works For Me"
- status changed to: "Pending"
- subsystem changed to: "12. ByteArray Object"
- username: "dkf"
Ticket change [69a9b23a50] (rid 103288) by avl42 on 2007-10-11 19:07:38:
- 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.*)
- login: "avl42"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "avl42"
- icomment:
Ticket change [894ecfd136] (rid 132005) by dkf on 2007-10-11 20:03:25:
- closedate changed to: "2007-10-11T13:03:25"
- closer changed to: "dkf"
- 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).
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "dkf"
Ticket change [16d639d42e] (rid 124780) by sf-robot on 2007-10-26 09:20:10:
- closedate changed to: "2007-10-26T02:20:10"
- closer changed to: "sf-robot"
- 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).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"