Posted to tcl by Bradipo at Tue May 01 03:58:22 GMT 2012view raw

  1. Both of these systems are the same tcl_platform, yet:
  2.  
  3. $ echo 'puts [binary format S3 {0 100 389}]' | tclsh | od -c
  4. 0000000 \0 \0 \0 d 001 205 \n
  5. 0000007
  6.  
  7. $ echo 'puts [binary format S3 {0 100 389}]' | tclsh | od -c
  8. 0000000 \0 \0 \0 d 001 302 205 \n
  9. 0000010
  10.