[Dart] NULL-CHARACTER removal
Miller, James V (CRD)
millerjv at crd.ge.com
Wed, 16 Jan 2002 09:11:49 -0500
Which versions of Tcl are working and which are causing a problem? The regexp engine changed quite a
bit at Tcl 8.1?
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Wednesday, January 16, 2002 9:01 AM
To: dart at public.kitware.com
Subject: [Dart] NULL-CHARACTER removal
Hello,
A week or two ago I updated XMLSafeString to detect NULL (\0) characters
in strings and replace them with a big flag of characters. Not knowing
the details of Tcl and non-ascii data, I guessed that a line like this
would remove the characters:
regsub -all "\0" $str "!!DART-DETECTED-NULL-CHARACTER!!" str
It worked on several versions of Tcl that I tried, so I committed the
change. Several other versions of Tcl seem to be interpreting the regex
as the empty string, and putting the notification in-between EVERY pair of
characters. I just commented out the change for the time being.
Does anyone know how to get Tcl to remove these characters? They were
messing with the XSLT code, so without removing them, if one test outputs
a null character, no tests show up.
-Brad
_______________________________________________
Dart mailing list
Dart at public.kitware.com
http://public.kitware.com/mailman/listinfo/dart