[Pkg-tcltk-devel] Bug#723090: Bug#723090: tcl8.5: [:cntrl:] character class does not include 0x00-0x1f

Sergei Golovan sgolovan at nes.ru
Mon Sep 16 12:52:23 UTC 2013


Hi Bruce,

On Mon, Sep 16, 2013 at 2:29 PM, Bruce Stephens
<bruce.stephens at isode.com> wrote:
>
> Dear Maintainer,
>
> I have an expect script that tries to match ([^[:cntrl:]]*), and it
> also matches the CRs at the end of a line.  On inspection, that's
> because controlRangeTable[] and controlCharTable[] do not contain the
> normal ASCII control characters (which I think are also Unicode
> control characters).  In tcl8.4, they are included (though by the
> looks of it it's only ASCII since it only seems to include 0x0-0x1f
> and 0x7f-0x9f).

This seems like a bug, but I tried to run [regexp {[[:cntrl:]]} "\r"] and got
the same result both for Tcl 8.5.14. and 8.4.20. It seems that the regression
was for both 8.5 and 8.4. We'll forward the bug upstream.

Cheers!
-- 
Sergei Golovan



More information about the Pkg-tcltk-devel mailing list