SafeChars plugin misbehaving...

May 24, 2010
855
0
Northlake, Il
First, look at this output:
Code:
#ABCD EFGH IJKL#
# EFGH IJKL#
#ABCDEF, GHI, JKLMNOP#
#, GHI, JKLMNOP#
I'll note here that the output should be:
Code:
#ABCD EFGH IJKL#
#ABCD EFGH IJKL#
#ABCDEF, GHI, JKLMNOP#
#ABCDEF, GHI, JKLMNOP#
It is missing everything before the either the first space or the first comma.

I would swear that this problem (or one very similar) came up in the not too distant past and it was fixed. Whether or not that's the case, it's there now.

Below is the transcript of a complete TCC session, unmodified by me in any way, that illustrates everything related to this problem and nothing else:
Code:
   Mon  Dec 24, 2012   6:11:49a

Chill v1.1.0 loaded.
TCC: Plugin already loaded "Event64"
HTags plugin v0.60.3 loaded.
HTMLDump plugin v1.0.5 loaded.
ISO8601 plugin v1.3.7 loaded.
PopInfo v1.0.3 loaded; hotkey is Control-Q.
QCAL plugin v1.3.7 loaded.
SafeChars plugin v1.7.0 loaded.
Say plugin v1.0.7 loaded.

TCC  14.03.52 x64   Windows 7 [Version 6.1.7601]
Copyright 2012 JP Software Inc.  All Rights Reserved
Registered to Daniel Mathews

[Z:\]cdd "C:\Program Files\JPSoft\TCMD14x64\Plugins"

[C:\Program Files\JPSoft\TCMD14x64\Plugins]fdir safe*
 9/04/2012  11:16          40,960  safechars-x64.dll
 9/04/2012  11:23          35,326  SafeChars.chm
 9/04/2012  11:23          43,482  safechars.html

[C:\Program Files\JPSoft\TCMD14x64\Plugins]cdd "E:\FireFox Downloads\SafeChars.unz
ip

[E:\FireFox Downloads\SafeChars.unZip]fdir
10/02/2009  10:55           1,128  demo.btm
 9/04/2012  11:16          40,960  safechars-x64.dll
 9/04/2012  11:23          35,326  SafeChars.chm
 9/04/2012  11:16          36,864  safechars.dll
 9/04/2012  11:23          43,482  safechars.html
12/24/2012   5:21         111,642  safechars.zip

[E:\FireFox Downloads\SafeChars.unZip]type Z:\SafeDemo.btm
@Echo Off
SetLocal
UnSafe /E:,
Set Data=ABCD EFGH IJKL
@Echo #%Data#
@Echo #%@UnSafe[%@SafeExp[%Data]]#
Set Data=ABCDEF, GHI, JKLMNOP
@Echo #%Data#
@Echo #%@UnSafe[%@SafeExp[%Data]]#
EndLocal

[E:\FireFox Downloads\SafeChars.unZip]Z:\SafeDemo
#ABCD EFGH IJKL#
# EFGH IJKL#
#ABCDEF, GHI, JKLMNOP#
#, GHI, JKLMNOP#

[E:\FireFox Downloads\SafeChars.unZip]
Sadly, because I regularly use characters in my file names that TCC really doesn't like this problem has me dead in the water as the saying goes.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Sorry, the problem is incorrect use of @SAFEEXP. Plesae the below warning in the HELP for @SAFEEXP (emphasis added):
"Note: Do not type a percent sign before the variable or function name. If you do, TCC’s parser will expand the argument before @SAFEEXP gets to see it"
--
HTH, Steve
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,460
88
Albuquerque, NM
prospero.unm.edu
Sorry, the problem is incorrect use of @SAFEEXP. Plesae the below warning in the HELP for @SAFEEXP (emphasis added):
"Note: Do not type a percent sign before the variable or function name. If you do, TCC’s parser will expand the argument before @SAFEEXP gets to see it"

Thanks, Steve.

(I'll be out of contact for the next several days, so I won't be able to provide any kind of support. Sorry! A good and safe Christmas to all!)
 
Similar threads
Thread starter Title Forum Replies Date
M How to? Use SafeChars plugin... Plugins 2
dcantor Error in SAFECHARS plugin v 1.9.0 Plugins 2
dcantor Suggestion for SafeChars plugin Plugins 7
M Charles, I just installed the "new" SafeChars plugin, ... Plugins 5
M A problem with the SafeChars Plugin... Plugins 30
M A (presumbly pretty simple) SafeChars plugin request... Plugins 2
M A "SafeChars" plugin request... Plugins 2
S SafeChars plugin Plugins 2
Charles Dye New plugin: SafeChars Plugins 15
thedave SafeChars: Escaped version of @unsafe Plugins 7
S How to? SafeChars.dll question Plugins 4
Stefano Piccardi SafeChars thank you Plugins 2
Joe Caverly 64-bit Plugin development using PureBasic Plugins 15
R New Plugin Plugins 0
Alpengreis elevated plugin questions Plugins 3
fpefpe utf-8 support in sdk/plugin api Plugins 4
S How to? Can @DU function in 4Utils64 plugin somehow cater for dirs with spaces? Plugins 3
vefatica Plugin access to arrays? Plugins 4
vefatica How big is a plugin's parameter buffer? Plugins 5
C @knownpath plugin Plugins 0
Charles Dye Updated OSD plugin Plugins 0
Joe Caverly C# plugin framework for JPSoft's TCC Plugins 0
dcantor Help for newest version of TEXTUTILS plugin Plugins 10
dcantor UISTUFF plugin missing help topic Plugins 12
dcantor Request for documentation for ISO8601 plugin Plugins 4
vefatica Possible with a plugin? Plugins 6
dcantor Inconsistency between textutils plugin and wrap utility Plugins 2
M (Stupid?) Problem with 64-bit 4Utils plugin... Plugins 3
H Latest ISO8601 plugin? Plugins 1
Charles Dye New plugin: QKeys Plugins 34
S Plugin to quickly locate all files hard linked together Plugins 5
S Documentation Plugin everything.dll Plugins 5
newbie How to? Multi-plugin installation errors, Re: FedUtils8 Plugins 7
vefatica Plugin -> thread -> Command() -> Ctrl-C? Plugins 20
Charles Dye A weirdoid plugin question Plugins 6
M A weird error re a plugin... Plugins 0
vefatica Plugin dilemma Plugins 2
fpefpe Documentation Plugin API/SDK Plugins 3
C Looking for Vince's old 4UTILS plugin for TCMD v8 Plugins 1
S DESKTOP plugin - anyone ? Plugins 0
C How to? a plugin to sort Outlook Express "rules" Plugins 0
M ISO Plugin: Yes, it's wonderful, but it could be yet more wonderful... Plugins 7
M The ISO plugin is wonderful, but it lacks a little something... Plugins 22
Charles Dye Beta plugin: HidePasswords Plugins 3
M ISO8601 Plugin not "reporting" errors to TCC... Plugins 4
Frank 4console plugin Plugins 4
S WAD ISO8601 Plugin Plugins 15
Joe Caverly Plugin and 64-bit TCC Plugins 3
C Problem with FixNames plugin Plugins 9
dcantor Suggestion and request for DBF plugin Plugins 6

Similar threads