From: <no...@so...> - 2001-12-19 22:55:38
|
Bugs item #495213, was opened at 2001-12-19 14:55 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=495213&group_id=10894 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Hemang Lavana (hemanglavana) Assigned to: Nobody/Anonymous (nobody) Summary: bug in scan command Initial Comment: Hemang, You have indeed found a bug in the scan command. This occured when 'scan' was rewritten for 8.1 to support unicode. The problem is rather simple - it won't read past the "0x...", so you are always scanning the 0 before the x. You can see this with: scan 0x001 %xx%x => 0 1 The workaround is to do: set a [expr $a] and then the scan. This does need to be reported to SourceForge as well. Is this something that you will also need corrected in the IOS port? Thanks, Jeff Hobbs The Tcl Guy Senior Developer http://www.ActiveState.com/ Tcl Support and Productivity Solutions > -----Original Message----- > From: Hemang Lavana [mailto:hl...@ci...] > Sent: December 19, 2001 1:12 PM > To: jeffH@ActiveState.com > Cc: andreasK@ActiveState.com; jy...@ci... > Subject: Bug in scan command? > > > Hello Jeff, > > Is this a bug in scan command? I tried these commands in tcl8.3.4.1 > version on win2k and got the same results. Note that ATS3.2 contains > tcl8.0.5 version and ATS3.4 contains tcl8.3.3 version. > > % package provide ActiveTcl > 8.3.4.1 > (bin) 2 % set a 0x0001 > 0x0001 > (bin) 3 % scan $a %x a > 1 > (bin) 4 % puts $a > 0 > (bin) 5 % scan 0xff %x > 0 > > Let me know if you want me to file a bug on SF. > > Thanks, > Hemang. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=495213&group_id=10894 |