Skip to content
Tcl Source Code History Of Ticket 867509ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 867509ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 867509ffffffffffffffffffffffffffffffffff

  1. Ticket change [daa5e56c59] (rid 107825) by rongbing11968 on 2003-12-30 07:02:15:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tcl_EvalFile for chinese path in Win2000, occur failed:
      
      void CTclExecDlg::OnButtonRun() 
      {
      UpdateData(TRUE);
      
      Tcl_FindExecutable(AfxGetApp()-
      >m_pszExeName);
      
      Tcl_Interp* pInterp = Tcl_CreateInterp();
      if(pInterp == NULL)
      {
      TRACE(_T("Interp create failed.
      "));
      return;
      }
      Tcl_Preserve((ClientData)pInterp);
      
      char scriptFile[1024];
      strcpy(scriptFile, m_sScriptPath);
      
      Tcl_DString tStr1;
      Tcl_ExternalToUtfDString(NULL, scriptFile, -1, 
      &tStr1);
      
      int result = Tcl_EvalFile(pInterp, 
      Tcl_DStringValue(&tStr1));
      if (TCL_OK != result )
      {
      TRACE(_T("Execute failed.
      "));
      }
      Tcl_DStringFree(&tStr1);
      
      if(Tcl_InterpDeleted(pInterp) == 0)
      Tcl_DeleteInterp(pInterp);
      Tcl_Release((ClientData)pInterp);
      }
      
      
    4. foundin initialized to: "obsolete: 8.4.5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "rongbing11968"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to:
      Tcl_EvalFile for chinese path in Win2000, occur failed
      
    11. type initialized to: "Bug"
  2. Ticket change [f2a8cc42e6] (rid 109588) by dgp on 2003-12-31 23:08:11:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      what is the value of m_sScriptPath?
      and what encoding is it in?
      and what is the system encoding?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [c51fee48a7] (rid 111944) by rongbing11968 on 2004-01-08 16:18:40:

    1. icomment:
      Logged In: YES 
      user_id=940212
      
      m_sScriptPath is "D:\Softphone2.2\project\ICD3.0平台
      \rule\rb2004\my.tcl".
      
      encoding is CP936.
      
      
      System encoding is CP936.
      
      
    2. login: "rongbing11968"
    3. mimetype: "text/plain"
    4. username: "rongbing11968"
  4. Ticket change [803423c548] (rid 97697) by msofer on 2004-01-09 06:04:22:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Don: you spoke up, it's all yours - I wouldn't know where to
      start
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  5. Ticket change [9836ab6306] (rid 110566) by rongbing11968 on 2004-01-10 09:08:50:

    1. icomment:
      Logged In: YES 
      user_id=940212
      
      The attached file is my test program. When we click RUN 
      button, Tcl_EvalFile will return "counldn't read file 
      D:\Softphone2.2\PROJECT\ICD3.0平台\Rules\my.tcl: no such 
      file or directory". My OS is WinXP chinese version.
      
      
      
      
    2. login: "rongbing11968"
    3. mimetype: "text/plain"
    4. username: "rongbing11968"
  6. Ticket change [dec07cfe95] (rid 114903) by dgp on 2004-01-14 07:02:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      there is no file attached.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [76db210f20] (rid 105658) by davygrvy on 2004-01-15 16:23:47:

    1. icomment:
      Logged In: YES 
      user_id=7549
      
      D:\Softphone2.2\PROJECT\ICD3.0平台\Rules\my.tcl
      
      Is the filename displayed in the error message the correct 
      filename as you expect to see it?
      
      
    2. login: "davygrvy"
    3. mimetype: "text/plain"
    4. username: "davygrvy"
  8. Ticket change [6bd5732a62] (rid 128391) by bladesun on 2004-06-28 09:18:28:

    1. icomment:
      Logged In: YES 
      user_id=1072261
      
      I have encountered the similar problem!
      my OS: win2000 SP4 Chinese
      my Tcl Realese: ActiveTcl8.4.6.1-win32-ix86-99631
      
      following is my very simple program:
      
      void main(int argc, char *argv[]){
          char *str = "D:/MyCode/Going/test.tcl";
          Tcl_Interp* interp=Tcl_CreateInterp();
          Tcl_Init(interp);
      
          if(TCL_OK!=Tcl_EvalFile(interp, str)){
              Tcl_DeleteInterp(interp);
              return;
          }
          Tcl_DeleteInterp(interp);
          exit(0);
      }
      
      successed compling under VC6.0! 
      when executing, segment erroe occur, the OS message just 
      like this(translated from chinese): 
      Instruction "0x00000000" references "0x00000000" address 
      which cann't  be read
      when debugging in VC, the message is:
      Unhandled exception in myprom.exe:0xC0000005: Access 
      Violation.
      
      
      
    2. login: "bladesun"
    3. mimetype: "text/plain"
    4. username: "bladesun"
  9. Ticket change [d2cca5a0dc] (rid 113597) by nobody on 2004-06-28 14:31:22:

    1. icomment:
      Logged In: NO 
      
      PS: I tested the same program under tcl8.3.5(complied using 
      tcl8.3.5-src.tar.gz from here), there is no problem!
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"
  10. Ticket change [8eb057d31f] (rid 120154) by bladesun on 2004-06-28 14:36:50:

    1. icomment:
      Logged In: YES 
      user_id=1072261
      
      PS: I tested the same program under tcl8.3.5(complied using 
      tcl8.3.5-src.tar.gz from here), there is no problem!
      
      
    2. login: "bladesun"
    3. mimetype: "text/plain"
    4. username: "bladesun"
  11. Ticket change [064873ef74] (rid 89196) by dgp on 2004-06-28 19:28:13:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      bladesun, your example program
      is missing a call to Tcl_FindExecutable().
      
      Add
      
      Tcl_FindExecutable(argv[0])
      
      before the Tcl_CreateInterp() 
      call, and see if that corrects
      your trouble.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [f8bfb89ee9] (rid 91597) by bladesun on 2004-06-29 08:52:06:

    1. icomment:
      Logged In: YES 
      user_id=1072261
      
      dgp, you are right!
      It seems to be my fault ...
      but why not keep upward compatible?
      
      
    2. login: "bladesun"
    3. mimetype: "text/plain"
    4. username: "bladesun"
  13. Ticket change [aa02a9aeb2] (rid 99250) by dgp on 2004-06-29 21:06:43:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      Tcl_FindExecutable() calls
      have been required since Tcl 8.1.
      It's a mystery to me why your
      program worked with 8.3.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Ticket change [b492c60940] (rid 125064) by hobbs on 2004-06-30 01:11:59:

    1. closedate changed to: "2004-06-29T18:11:59"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      The Tcl_FindExecutable was correct for 8.1+ and documented
      as such.  It became essential with 8.4 changes, whereas
      before you could get away without it - but it was still
      supposed to be there.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"