Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Fatal Error in Wish with string range

Closed / Duplicate1416286fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-01-27 11:39:05
I'm using Tcl 8.5 Beta 4 from ActiveState. And seems to
be a really strange problem. 

Here is the script to reproduce the bug:

(bin) 1 % set value Name
Name
(bin) 2 % set value [string range $value 0 1]
Na
(bin) 3 % if {$value == ""} {puts "CRASH"}

Then shows: 
Fatal Error in Wish
in TclParseNumber: bad acceptState, can't happen.

I've solved the problem using

if {[string compare $value ""]} {puts "CRASH"}

If you need some extra information don't hesitate to
contact me.

Carlos Tasada.
msofer Closed ticket [1416286fff]. [History diff]2006-01-27 19:09:51
msoferplain2006-01-27 19:09:52
Logged In: YES 
user_id=148712

This is a duplicate of [Bug 1325833]; it has been fixed in
HEAD and should be ok in ActiveState's next release.
Log in (anonymous is fine) to add a comment.