Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-08-23
00:59 • Ticket [445190ffff] regex {[:upper:][:lower:]} fails status still Closed... artifact: 719422f310 user: hobbs
2001-08-20
22:46 • Ticket [445190ffff]: 6 changes artifact: 58d8f94157 user: dgp
22:28 • Ticket [445190ffff]: 6 changes artifact: 0754b9d27c user: dgp
21:18 • Closed ticket [445190ffff]. artifact: 66d64e0861 user: dkf
2001-07-27
15:06 • New ticket [445190ffff]. artifact: d0d29c50ee user: glennjnn

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.