Menu

#101 Invalid multibyte or wide char in test file causes crash with tk9.0

V5.7
open
nobody
None
5
4 days ago
4 days ago
DorothyR
No

invoking the jun17 version of tkdiff with wish9.0 on the two files uploaded here, an error happens. It doesn't happen with wish8.6. I have no idea what the multibyte character is but it seems to be in both dirdiff and tkdirdiff.

tildChk: SPLIT frags(dirdiff) INITIALIZATION
Dbg: +++ Default V9 1st Frag newf1(dirdiff) to later update canon
Dbg: *** REWROTE(result(1)) CANON(dirdiff) w/converted 1st frag(dirdiff)
tildChk: SPLIT frags(tkdirdiff) INITIALIZATION
Dbg: +++ Default V9 1st Frag newf1(tkdirdiff) to later update canon
Dbg: *** REWROTE(result(1)) CANON(tkdirdiff) w/converted 1st frag(tkdirdiff)
Error in startup script: error reading "file6": invalid or incomplete multibyte or wide character
while executing
"read $hndl"
(procedure "rediff" line 21)
invoked from within
"rediff "
(procedure "check-error" line 18)
invoked from within
"check-error $result $output"
(procedure "do-diff" line 20)
invoked from within
"do-diff"
(procedure "main" line 101)
invoked from within
"main"
(file "/home/dorothyr/Downloads/tkdiff-jun17" line 18692)

2 Attachments

Related

Bugs: #101

Discussion

  • DorothyR

    DorothyR - 4 days ago

    Filetype gives a clue, although I don't know how or why this happened

    $ file *
    cvsdiff: POSIX shell script, ASCII text executable
    dirdiff: POSIX shell script, ISO-8859 text executable
    tkdirdiff: POSIX shell script, ISO-8859 text executable

     
    • DorothyR

      DorothyR - 4 days ago

      Here's the relevant tcl9.0 manpage
      https://www.tcl-lang.org/man/tcl9.0/TclCmd/chan.html#M48

      On Sun, Jun 22, 2025 at 12:52 PM DorothyR dorothyr@users.sourceforge.net
      wrote:

      Filetype gives a clue, although I don't know how or why this happened

      $ file *
      cvsdiff: POSIX shell script, ASCII text executable
      dirdiff: POSIX shell script, ISO-8859 text executable
      tkdirdiff: POSIX shell script, ISO-8859 text executable


      [bugs:#101] Invalid multibyte or wide char in test file causes crash
      with tk9.0

      Status: open
      Group: V5.7
      Created: Sun Jun 22, 2025 07:49 PM UTC by DorothyR
      Last Updated: Sun Jun 22, 2025 07:49 PM UTC
      Owner: nobody
      Attachments:

      • dirdiff
        (129.3 kB; application/octet-stream)
      • tkdirdiff (85.1 kB;
        application/octet-stream)

      invoking the jun17 version of tkdiff with wish9.0 on the two files
      uploaded here, an error happens. It doesn't happen with wish8.6. I have
      no idea what the multibyte character is but it seems to be in both dirdiff
      and tkdirdiff.

      tildChk: SPLIT frags(dirdiff) INITIALIZATION
      Dbg: +++ Default V9 1st Frag newf1(dirdiff) to later update canon
      Dbg: *** REWROTE(result(1)) CANON(dirdiff) w/converted 1st frag(dirdiff)
      tildChk: SPLIT frags(tkdirdiff) INITIALIZATION
      Dbg: +++ Default V9 1st Frag newf1(tkdirdiff) to later update canon
      Dbg: *** REWROTE(result(1)) CANON(tkdirdiff) w/converted 1st
      frag(tkdirdiff)
      Error in startup script: error reading "file6": invalid or incomplete
      multibyte or wide character
      while executing
      "read $hndl"
      (procedure "rediff" line 21)
      invoked from within
      "rediff "
      (procedure "check-error" line 18)
      invoked from within
      "check-error $result $output"
      (procedure "do-diff" line 20)
      invoked from within
      "do-diff"
      (procedure "main" line 101)
      invoked from within
      "main"
      (file "/home/dorothyr/Downloads/tkdiff-jun17" line 18692)


      Sent from sourceforge.net because you indicated interest in <
      https://sourceforge.net/p/tkdiff/bugs/101/>

      To unsubscribe from further messages, please visit <
      https://sourceforge.net/auth/subscriptions/>

      --
      From my gmail account

       

      Related

      Bugs: #101

  • DorothyR

    DorothyR - 4 days ago

    Oh great it's the copyright string:
    776:Copyright � 1999-2005 Paul Mackerras

    Here's the relevant tcl9.0 document
    https://www.tcl-lang.org/man/tcl9.0/TclCmd/chan.html#M48

     

    Last edit: DorothyR 4 days ago

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.