Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Error in SAFECHARS plugin v 1.9.0

May
572
4
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:
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.
 

Similar threads

Back
Top