Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: daa5e56c591579b99b41c391251cbb177c256957
Ticket: 867509ffffffffffffffffffffffffffffffffff
Tcl_EvalFile for chinese path in Win2000, occur failed
User & Date: rongbing11968 on 2003-12-30 07:02:15
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.4.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "rongbing11968"
  9. subsystem changed to: "45. Parsing and Eval"
  10. title changed to:
    Tcl_EvalFile for chinese path in Win2000, occur failed
    
  11. type changed to: "Bug"