1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error in SAFECHARS plugin v 1.9.0

Discussion in 'Plugins' started by dcantor, Oct 31, 2014.

  1. dcantor

    Joined:
    May 29, 2008
    Messages:
    508
    Likes Received:
    3
    Using Win 7 and TCC 16 :

    Code:
    ~\Work> echo abcde > x.txt
    
    ~\Work> plugin /i safechars
    Module:      C:\Program Files\JPsoft\TCMD16x64\PlugIns\safechars-x64.dll
    Name:        SafeChars
    Author:      Charles Dye
    Email:       cdye@unm.edu
    Web:         http://prospero.unm.edu/plugins/safechars.html
    Description: Read and write text containing special characters
    Implements:  @countsafe,@countsafex,@countunsafe,@countunsafex,@safecharsinfo,@safeclip,@safeclipw,@safeenv,@safeexp,@safel
    ine,@saferead,@safewrite,@unsafe,@unsafeesc,@uquotes,_amp,_bq,_caret,_closebrk,_closepat,_gt,_lt,_openbrk,_openpat,_pct,_qu
    ote,_vbar,safearray,safecharshelp,safeecho,safeechos,unsafe
    Version:     1.8  Build 0
    
    ~\Work> echo %@safeline[x.txt,0]
    abcde
    
    ~\Work> plugin /u safechars
    
    ~\Work> plugin /l c:\temp\safechars-x64.dll
    SafeChars plugin v1.9.0 loaded.
    
    ~\Work> echo %@safeline[x.txt,0]
    
    TCC: Unknown command "*setdos"
    
    abcde
    
    (%?=2, %_?=0)
    ~\Work> echo %@line[x.txt,0]
    abcde
    
    (%?=2, %_?=0)
    ~\Work>
    
    Where is the unknown command "*setdos" error coming from?
     
    #1 dcantor, Oct 31, 2014
    Last edited: Oct 31, 2014
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,352
    Likes Received:
    39
    Yes, SafeChars calls SETDOS internally.

    It used to call the internal command directly, through an API which no longer exists in v17. So now I call it a different way, through Command(). Apparently the leading * is a problem when alias expansion is disabled. I'll get a fix up sometime today.
     
  3. dcantor

    Joined:
    May 29, 2008
    Messages:
    508
    Likes Received:
    3
    Thanks.
     

Share This Page