5.7 upgrade issue

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf 5.7 upgrade issue

  • Creator
    Topic
  • #52057
    David Barr
    Participant

      We upgraded from 5.5 on HPUX to 5.7 on Linux, and we’re seeing an issue with reading and writing files from TCL.  On the old version, we could read and write binary data to and from files without issue.  On the new version, binary data is corrupted when we try to do this.  We have to first call fconfigure to set the translation to binary. I couldn’t find anything in the 5.6 or 5.7 release notes about this.  Has anyone else run into this problem?

      I did a quick check on the default file channel settings between the two systems, and they both have translation set to “lf”, but the old system uses “utf-8” encoding and the new system uses “iso8859-1” encoding.

    Viewing 1 reply thread
    • Author
      Replies
      • #72894
        James Cobane
        Participant

          David,

          As you found, you need to update your tcl proc to specify that you want to treat the file as binary using the ‘fconfigure’ , i.e:

        • #72895
          Steve Carter
          Participant

            Check to see if you have the following line:

            set EuroBinary 1

            in

            $HCIROOT/tcl/lib/cloverleaf/init.tcl

            If not, that is likely your problem.  This was missing in a prior version (can’t remember which one) in which we were experiencing the same type of problem.  Due to the number of file reads that we do, it was not an option to add an fconfigure to all of them.

            The other option to resolve this issue is to ‘rename’ the open command to null and rewrite it in the init.tcl file with the fconfigure option.

            I posted some information on this quite some time ago.  You might be able to search the forum for more information.

            Hope this helps.

            Thanks.

            Steve

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.