Skip to content
Tcl Source Code History Of Ticket 1823552
Login

History Of Ticket 1823552

Artifacts Associated With Ticket 1823552

  1. Ticket change [c0d29d1212] (rid 102481) by dgp on 2007-10-31 15:34:18:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      In an application that embeds Tcl,
      we create data snapshot files, and
      construct unique filenames to avoid
      collision when filesystems are shared
      by several systems running our app,
      like so:
      
      set name foo-[info hostname]-[pid]
      
      Some users of our app working on
      a Chinese Windows system report errors
      about not being able to find/read
      these files.
      
      After a few rounds of debugging, the
      problem realtes to their [info hostname]
      containing Chinese characters.  If we
      revise to
      
      set name foo-[encoding convertfrom [info hostname]]-[pid]
      
      then the app works again.
      
      Looking at the source code fro Tcl_GetHostname()
      it appears that the translation from
      system encoding to internal encoding
      is not done on Windows when the value is
      retreived from a gethostname() routine.
      
      It seems this bug has been undetected
      for a long time, since it is only
      very recently that ICANN is permitting
      domain names to have non-ASCII characters.
      
      
      
    4. foundin initialized to: "obsolete: 8.4.16"
    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: "27. Channel Types"
    11. title initialized to: "[info hostname] encoding"
    12. type initialized to: "Bug"
  2. Ticket change [e6f96c2e24] (rid 104378) by davygrvy on 2007-11-16 01:18:11:

    1. icomment:
      Logged In: YES 
      user_id=7549
      Originator: NO
      
      Andreas,  It appears you fixed this.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  3. Ticket change [4149fec8d6] (rid 116163) by andreas_kupries on 2007-11-16 01:24:21:

    1. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      When ? I do not remember having worked in this area.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [61b20c85eb] (rid 92284) by dgp on 2007-11-16 01:31:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Please note the bug is filed
      against 8.4.16.
      
      The bug is technically present
      on both branches, but due to other
      changes, it is practically never
      encountered on the 8.5 branch.
      
      I have a patch in my head to put
      on the HEAD; just haven't got back
      to it yet.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [c55c5c25cb] (rid 111991) by davygrvy on 2007-11-16 01:48:30:

    1. icomment:
      Logged In: YES 
      user_id=7549
      Originator: NO
      
      tclWinSock.c:InitializeHostName() on the HEAD looks like it has the correct behavior reading through it.
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  6. Ticket change [cc67adfe50] (rid 95691) by dgp on 2007-11-16 03:06:53:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      The branch that calls
      getComputerNameProc() is
      correct.  Since that will
      presumable always succeed, 
      the HEAD code won't reach
      the bug.
      
      The followup branch that
      calls gethostname() is
      the part that is broken.
      gethostname() empirically
      returns a string in the
      [encoding system], but the
      InitializeHostName() routine
      assumes the string is in utf-8.
      
      On the 8.4 branch, the
      gethostname() attempt
      comes before the
      getComputerNameProc()
      attempt, so the bug is
      easier to demo and more
      important to fix.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [2906a5cfa1] (rid 88803) by dgp on 2007-11-28 01:47:41:

    1. assignee changed to: "dgp"
    2. priority changed to: "9 Immediate"
  8. Ticket change [7b39c9689a] (rid 90486) by dgp on 2007-11-28 03:27:27:

    1. icomment:
      
      
      File Added - 256332: 1823552.patch
      
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Here's a patch for 8.4
      File Added: 1823552.patch
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Add attachment "1823552.patch" [9e107de62d] (rid 96413) by dgp on 2007-11-28 03:27:27.

  10. Ticket change [eb44f4d7aa] (rid 103520) by dgp on 2007-11-28 03:30:56:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      committed for 8.4.17
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [99922aab1c] (rid 110817) by dgp on 2007-11-28 03:39:27:

    1. closedate changed to: "2007-11-27T20:39:27"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      Issue patched for 8.5.0 as well,
      though it likely never triggers
      there.
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"