Artifacts Associated With Ticket 8d5f5b8034
Ticket change [68e01eef2f] (rid 137064) by oehhar on 2014-02-25 14:10:04:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
<h1>Issue</h1> string tolower does not remove a list representation in some circumstances <h1>Environment</h1> * Fossil Trunk [29b5d483ec] * Compiled with MSVC6++, SDK2003SP1 and Makefile.vc * Windows Vista 32 bit GER <h1>Demonstration</h1> I stumbled over the fact, that the following test failed: <verbatim> ==== cmdAH-6.4 Tcl_FileObjCmd: volumes FAILED ==== Contents of test case: set volumeList [string tolower [file volumes]] set element [lsearch -exact $volumeList "c:/"] list [expr {$element>-1}] [glob -nocomplain [lindex $volumeList $element]*] ---- Result was: 0 {aclocal.m4 buildall.vc.bat cat.c coffbase.txt configure configure.in makefile.bc Makefile.in makefile.vc nmakehlp.c nmakehlp.exe nmakehlp.obj README Release rules.vc tcl.dsp tcl.dsw tcl.hpj.in tcl.m4 tcl.rc tclAppInit.c tclConfig.sh.in tclooConfig.sh tclsh.exe.manifest.in tclsh.ico tclsh.rc tclWin32Dll.c tclWinChan.c tclWinConsole.c tclWinDde.c tclWinError.c tclWinFCmd.c tclWinFile.c tclWinInit.c tclWinInt.h tclWinLoad.c tclWinNotify.c tclWinPipe.c tclWinPort.h tclWinReg.c tclWinSerial.c tclWinSock.c tclWinTest.c tclWinThrd.c tclWinTime.c testlog_tcl-trunk_2014-02-24.txt versions.vc _junk.pch} ---- Result should have been (glob matching): 1 * ==== cmdAH-6.4 FAILED </verbatim> Then, I started the freshly compiled tclsh86.exe and executed command by command: <verbatim> % file volume C:/ D:/ E:/ T:/ U:/ X:/ Y:/ % set volumeList [string tolower [file volumes]] c:/ d:/ e:/ t:/ u:/ x:/ y:/ % set element [lsearch -exact $volumeList "c:/"] -1 % lindex $volumeList 0 C:/ % set volumeList c:/ d:/ e:/ t:/ u:/ x:/ y:/ </verbatim> IMHO, the list representation was not destroyed and the string is tolower but the list still uppercase. - foundin initialized to: "[29b5d483ec]"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "18. Commands M-Z"
- title initialized to:
string tolower does not invalidate list representation
- type initialized to: "Bug"
Ticket change [55748532a6] (rid 137065) by jan.nijtmans on 2014-02-25 15:12:40:
- assignee changed to: "jan.nijtmans"
- icomment:
Yes I can reproduce it. It works correct in tclsh85, but not in tclsh86. <pre> >tclsh85 % set volumeList [string tolower [file volumes]] c:/ d:/ % set element [lsearch -exact $volumeList "c:/"] 0 % lindex $volumeList 0 c:/ % set volumeList c:/ d:/ % exit >tclsh86 % set volumeList [string tolower [file volumes]] c:/ d:/ % set element [lsearch -exact $volumeList "c:/"] -1 % lindex $volumeList 0 C:/ % set volumeList c:/ d:/ % </pre>
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [63cc39ebed] (rid 137066) by dkf on 2014-02-25 15:19:29:
- assignee changed to: "dkf"
- icomment:
My bad. Forgot to purge internal representations in the bytecode implementation.
- login: "dkf"
- mimetype: "text/html"
- priority changed to: "9 Immediate"
- username: "dkf"
Ticket change [0a41539b22] (rid 137071) by dkf on 2014-02-25 15:51:24:
- closedate changed to: "2456714.16069656"
- closer changed to: "dkf"
- icomment:
All sorted. Note that this is a case when the fact that it involved filenames was <i>not</i> significant. That it was an unshared list that was modified was much more critical.
- login: "dkf"
- mimetype: "text/html"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"