Skip to content
Tcl Source Code History Of Ticket 0df5906dd7
Login

History Of Ticket 0df5906dd7

Artifacts Associated With Ticket 0df5906dd7

  1. Ticket change [ffa0e55ca1] (rid 218861) by jan.nijtmans on 2023-09-28 15:18:56:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      Example:
      <pre>
      $ tclsh8.7
      % fconfigure stderr -profile strict
      % set env(abc\ud800)
      can't read "env(abc
      %
      </pre>
      
      The expected output would be something like:
      <pre>
      % set env(abc\ud800)
      can't read "env(abc\ud800)": no such variable
      </pre>
      
      But, what happens is that \ud800 is an illegal character in the strict profile, so the stderr output is truncated there.
      
      At least, the stderr output should indicate what's going on here
      
    5. foundin initialized to: "8.7/9.0"
    6. is_private initialized to: "0"
    7. login: "jan.nijtmans"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "jan.nijtmans"
    14. subsystem initialized to: "26. Channel Transforms"
    15. title initialized to: "Error-handling when stderr is in "strict" profile"
    16. type initialized to: "Bug"
  2. Ticket change [272d180a0f] (rid 218865) by jan.nijtmans on 2023-09-28 15:26:36:

    1. icomment: "Proposed fix [6314825ea96ce2c8|here]"
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [babe275893] (rid 218870) by apnadkarni on 2023-09-28 16:25:13:

    1. icomment:
      For troubleshooting purposes I think it is important to get as much of the text written out as possible. If all one sees is *encoding error in stderr*, it is completely unhelpful. 
      
      I would propose that stderr use the REPLACE (my preference) or (TCL8) profile even in strict mode. 
      
      Of course this can be configured by applications at startup but since it is the preferred behavior in my estimation, it should be made the default (for stderr).
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  4. Ticket change [efc178f187] (rid 218876) by jan.nijtmans on 2023-09-28 18:16:55:

    1. icomment:
      Thanks, Ashok, I was thinking in about the same way. So TIP #657 needs to be modified, adding the "stderr" channel as an exception: "stderr" will be opened "-profile replace" by default (my preference too).
      
      Still, if someone sets "stderr" to strict profile, the channel should do as expected ..... adding *encoding error in stderr* is - at the very least - an improvement over how it is now.
      
      The handling in ::tcl::Bgerror has the same problem.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [da9195e9cb] (rid 218882) by jan.nijtmans on 2023-09-28 18:20:42:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
    5. status changed to: "Pending"
  6. Ticket change [63b46ed7b1] (rid 258152) by serhiy.storchaka on 2026-10-15 11:39:51:

    1. icomment:
      Fixed by [166b00eb0c]; stderr now also defaults to -profile replace as in TIP 657. Released in 9.0.0.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  7. Ticket change [7d7a05ed53] (rid 259944) by serhiy.storchaka on 2026-10-22 17:19:26:

    1. closedate changed to: "2461328.986013877"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"