regex {[[:upper:]][[:lower:]]} fails
Closed / Out of Date445190ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-07-27 15:06:58
Tcl Version (Group field)
% set tcl_patchLevel
8.2.3
OS Platform and Version
% parray tcl_platform
tcl_platform(byteOrder) = littleEndian
tcl_platform(machine) = i686
tcl_platform(os) = Linux
tcl_platform(osVersion) = 2.2.14-5.0
tcl_platform(platform) = unix
Problem Behavior
- see below
Expected Behavior
- see below
Concise Code Sample (if applicable)
% regexp {[A-Z][a-z]} Xy
1
% regexp {[[:upper:]][[:lower:]]} Xy
0
Obviously, the results should both be 1
dkfplain2001-08-20 21:18:13
Logged In: YES user_id=79902 Works for me with 8.4a4; closing...
dgpplain2001-08-20 22:28:08
Logged In: YES user_id=80530 Note that it's still broken in Tcl 8.3.3, though. If there's to be a Tcl 8.3.4, make sure the fix gets back-ported.
dgpplain2001-08-20 22:46:12
Logged In: YES user_id=80530 This bug was apparently fixed between the 8.4a2 and 8.4a3 releases of Tcl.
hobbsplain2001-08-23 00:59:36
Logged In: YES user_id=72656 The fix appears to have been in the recreation of the char/range tables in moving from Unicode 2.0 -> 3.1 compliance. Although that seems odd when reversing the lower/upper still gives the correct answer.
Log in (anonymous is fine) to add a comment.