Skip to content
Tcl Source Code History Of Ticket 1513659fffffffff
Login

History Of Ticket 1513659fffffffff

Artifacts Associated With Ticket 1513659fffffffff

  1. Ticket change [97cdd2c13d] (rid 110496) by kot on 2006-06-27 22:43:54:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When running tests with LANG set to uk_UA.KOI8-U, for 
      example, some of the Unicode-using tests fail.
      
      These are in exec and env, but not only.
      
      The other annoying part, is that, when tcltest 
      outputs the failures to the screen, it does not set 
      stderr's encoding to -binary, so both -- the expected 
      and the actual -- results appear as identical 
      question marks.
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kot"
    9. subsystem initialized to: "None"
    10. title initialized to: "Unicode-related tests fail for non-C LANG"
    11. type initialized to: "Bug"
  2. Ticket change [39127e9448] (rid 112324) by dkf on 2006-06-28 15:32:30:

    1. subsystem changed to: "34. tcltest Package"
  3. Ticket change [d644311eae] (rid 123773) by dkf on 2006-06-28 15:32:31:

    1. assignee changed to: "dgp"
  4. Ticket change [e61f20ad97] (rid 104247) by dgp on 2006-07-01 02:15:26:

    1. closedate changed to: "2006-06-30T19:15:26"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Please report the names of the
      failing tests so the issue can be
      assigned to the right maintainer.
      
      Please also report what version
      of Tcl you see the failures in.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. status changed to: "Pending"
    7. subsystem changed to: "None"
    8. username: "dgp"
  5. Ticket change [565dbdc281] (rid 94303) by dkf on 2006-07-03 15:11:37:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      I think there is (independently of everything else) a
      tcltest issue here relating to the loss of information when
      tests fail without providing enough information to hunt the
      error. Because of this, I'm re-marking this bug as a tcltest
      issue.
      
      But on the other issues (test numbers, version number) I
      quite agree with dgp.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. subsystem changed to: "34. tcltest Package"
    6. username: "dkf"
  6. Ticket change [e4a91f5a20] (rid 87991) by kot on 2006-07-03 20:15:54:

    1. icomment:
      Logged In: YES 
      user_id=173641
      
      Dgp, just set the LANG to anything (other than "C") and run
      the tests -- I tried the 8.4.13, but it should be
      reproducible with any.
      
      You'll see, and be able to enumerate the failing tests
      yourself. 
      
      
    2. login: "kot"
    3. mimetype: "text/plain"
    4. username: "kot"
  7. Ticket change [0371be7a9d] (rid 119831) by dgp on 2006-07-03 20:20:05:

    1. assignee changed to: "dkf"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      I'd rather not work on something
      without a partnership with the
      reporter.  You take it, dkf.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  8. Ticket change [280ea1b3b4] (rid 88635) by dkf on 2006-07-03 20:54:07:

    1. foundin changed to: "obsolete: 8.4.13"
    2. icomment:
      Logged In: YES 
      user_id=79902
      
      <sigh>
      
      I've not got a machine that has the uk_UA.KOI8-U locale
      installed anyway, and libc's fallback that I have got (the C
      locale!) works for me, but that's obviously not useful given
      the report. :-)
      
      As such, we *need* the submitter to cut-n-paste the entire
      log of what is failing inside the test suite (or inside Tcl
      itself) in here so that we can chase down what is going
      wrong. Attach it as a patch if it is too big to paste. Thanks.
      
      I'm not sure how to proceed with the stdout/stderr encoding
      issue, or at least not in a way that won't cause trouble
      elsewhere. Just configuring the output to be done in
      -translation binary mode is not enough, as that works by
      chopping high bytes from characters, and so loses
      information in a different way. Perhaps the right approach
      is to use -translation binary after an [encoding convertto
      utf-8]? Or maybe to provide some kind of option to turn on
      this behaviour, even if it is not default?
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  9. Ticket change [bda150c6d3] (rid 101935) by kot on 2006-07-04 00:25:05:

    1. icomment:
      Logged In: YES 
      user_id=173641
      
      As I mentioned from the beginning, uk_UA.KOI8-U is just an 
      example. ru_RU.ISO8859-5 is causing similar breakage. As do 
      la_LN.ISO8859-4, hu_HU.ISO8859-2, while those matching 
      *ISO8859-1* seem to work.
      
      ==== env-4.3 setting international environment variables 
      FAILED
      ==== Contents of test case:
      
          set env(\ua7) \ub6
          getenv
      
      ---- Result was:
      ?=?
      ---- Result should have been (exact matching):
      ?=?
      ==== env-4.3 FAILED
      
      
      ==== env-4.4 changing international environment variables 
      FAILED
      ==== Contents of test case:
      
          set env(\ua7) \ua7
          getenv
      
      ---- Result was:
      ?=?
      ---- Result should have been (exact matching):
      ?=?
      ==== env-4.4 FAILED
      
      
      ==== env-4.5 unsetting international environment variables 
      FAILED
      ==== Contents of test case:
      
          set env(\ub6) \ua7
          unset env(\ua7)
          set result [getenv]
          unset env(\ub6)
          set result
      
      ---- Result was:
      ?=?
      ---- Result should have been (exact matching):
      ?=?
      ==== env-4.5 FAILED
      
      error.test
      eval.test
      event.test
      exec.test
      
      ==== exec-2.6 redirecting input from immediate source, with 
      UTF FAILED
      ==== Contents of test case:
      
          # If this fails, it may give back:
          # "\uC3\uA9\uC3\uA0\uC3\uBC\uC3\uB1"
          # If it does, this means that the UTF -> external 
      conversion did not 
          # occur before writing out the temp file.
          exec [interpreter] $path(cat) << "\uE9\uE0\uFC\uF1"
      
      ---- Result was:
      ????
      ---- Result should have been (exact matching):
      ????
      ==== exec-2.6 FAILED
      
      execute.test
      expr-old.test
      expr.test
      
      ==== expr-8.13 CompileBitAndExpr: equality expr FAILED
      ==== Contents of test case:
      expr {"\374" eq "Э"}
      ---- Result was:
      0
      ---- Result should have been (exact matching):
      1
      ==== expr-8.13 FAILED
      [...]
      unixInit.test
      
      ==== unixInit-2.4 TclpInitLibraryPath: TCL_LIBRARY: INTL 
      FAILED
      ==== Contents of test case:
      
          # Child process translates env variable from native 
      encoding.
      
          set env(TCL_LIBRARY) "\xa7"
          set x [lindex [getlibpath] 0]
          unset env(TCL_LIBRARY)
          unset env(LANG)
      
          set x
      
      ---- Result was:
      ?
      ---- Result should have been (exact matching):
      ?
      ==== unixInit-2.4 FAILED
      
      
      
    2. login: "kot"
    3. mimetype: "text/plain"
    4. username: "kot"
  10. Ticket change [6985b02486] (rid 103270) by dkf on 2006-08-09 21:24:59:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Perhaps the best way forward is to provide an option to
      tcltest which tells it to \u encode any non-ascii chars in
      its output? That would at least mean that if things are
      going wrong, you can set something so that you can figure
      out what's failed in a way that lets you start bug
      hunting... :-)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Ticket change [688d9354a0] (rid 103090) by dkf on 2008-07-19 17:03:05:

    1. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      env.test now fixed on HEAD; it didn't need to produce non-ASCII characters to test what it was testing
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  12. Ticket change [5e3ae7dcbe] (rid 115600) by dkf on 2009-03-24 23:14:17:

    1. icomment:
      What's the current state of this issue now that at least some of it has been fixed? I can't recheck because I'm on OSX where everything is UTF-8 anyway for all locales.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  13. Ticket change [0eca3796ef] (rid 94676) by dkf on 2009-05-07 17:37:33:

    1. closedate changed to: "2009-05-07T10:37:33"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Found a way to recheck and fixed the problems that remained. (There were tests with unwarranted assumptions about the system encoding...)
      
      Suggest no changes to tcltest; better to write tests to be robust and only use ASCII scripts and comparisons (possible with suitable quoting and careful test design).
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"