Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 574953e3f1397fb5816f2d72473fb7c56cf7c6b63e9c1fb94310bcd59a474fd5
Ticket: 0f1ddc0df7fb734cf1cba12ac7c529d29fefb842
exec fails on encoding errors present in the output of the executed command
User & Date: anonymous on 2023-11-27 15:57:26
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    If executing the diff program with command exec on two files with different encodings, the output of diff cannot be read with Tcl9. 
    The following error message is generated: invalid or incomplete multibyte or wide character
     
    The problem occurres using tkdiff and can be reproduced by the following script:
    <code>
    puts "Using Tcl [info patchlevel]"
    set cmd "diff iso8859.txt utf8.txt"
    catch {eval ::exec $cmd} ret
    puts "ret=$ret" 
    </code>
    
    Test files will be attached.
    Paul
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "2e499ca9e0149983f6f63603feedc5b33bc05f5e"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "exec does not handle encoding"
  16. type changed to: "Bug"