Error in SAFECHARS plugin v 1.9.0

May 29, 2008
540
3
Groton, CT
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:       [email protected]
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?
 
Last edited:

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,846
48
Albuquerque, NM
prospero.unm.edu
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.