Skip to content
Tcl Source Code History Of Ticket 1893053
Login

History Of Ticket 1893053

Artifacts Associated With Ticket 1893053

  1. Ticket change [8ddc9509c5] (rid 128010) by dgp on 2008-02-13 20:02:54:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      make test TESTFLAGS="-singleproc 1 -file 'chanio.test encoding.test'"
      
      leads to:
      
      ==== encoding-11.1 LoadEncodingFile: unknown encoding FAILED
      ==== Contents of test case:
      
          set system [encoding system]
          set path [encoding dirs]
          encoding system iso8859-1
          encoding dirs {}
          set x [list [catch {encoding convertto jis0208 \u4e4e} msg] $msg]
          encoding dirs $path
          encoding system $system
          lappend x [encoding convertto jis0208 \u4e4e]
      
      ---- Result was:
      0 8C 8C
      ---- Result should have been (exact matching):
      1 {unknown encoding "jis0208"} 8C
      ==== encoding-11.1 FAILED
      
      
      The problem is that encoding-11.1 assumes
      the jis0208 encoding has not been loaded,
      while the tests chan-io-3.* make use of
      the encoding, so when both test files run
      in a common executable, the assumption
      is false.  The encoding has already been
      loaded for sake of those prior tests.
      
      This seems to mostly be a flaw in encoding-11.1
      relying on a precondition it does not confirm.
      To a lesser extent it can be seen as a failure
      of chanio.test to clean up after itself.
      
    4. foundin initialized to: "obsolete: 8.5.1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "10. Objects"
    11. title initialized to: "encoding-11.1 fails with -singleproc 1"
    12. type initialized to: "Bug"
  2. Ticket change [68ca5a328f] (rid 103125) by dgp on 2008-03-13 05:14:21:

    1. assignee changed to: "das"
    2. closedate changed to: "2008-03-12T22:14:21"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      This is fixed on the HEAD.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Pending"
    9. username: "dgp"
  3. Ticket change [2b969114bf] (rid 118767) by das on 2008-03-13 06:05:07:

    1. closedate changed to: "2008-03-12T23:05:07"
    2. closer changed to: "das"
    3. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      oops, thanks, hadn't seen this report, updated ChangeLog with bug ref.
      
      the cause of the problem was in fact  that LoadEscapeEncoding() was leaking sub-encodings, i.e. they remained loaded after the escaped encoding was freed.
      for instance, make test TESTFLAGS='-singleproc 1 -match "chan-io-1.8 encoding-11.1"'  was failing because chan-io-1.8 loads the 'iso2022-jp' escaped encoding which leaked the 'jis0208' sub-encoding, leading to encoding-11.1 seeing it as being loaded even with emtpy [encoding dirs]. 
      
      
      
      
    4. login: "das"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "das"