Comment 2 for bug 1000730

Revision history for this message
Claus Wetzel (claus-wetzel) wrote :

1) what have you been doing

Trying to save an inifile to disk with
::ini::commit

2) what did you expect to happen

Inifile shoud be written to file

3) what happened.

file5 is not an open INI file
    while executing
"_valid_ns $fh"
    (procedure "close" line 2)
    invoked from within
"close $channel"
    (procedure "::ini::commit" line 33)
    invoked from within
"::ini::commit $ini"
    (file "inifilebug.tcl" line 7)

4) how can we reproduce this issue, if applicable.
 Try following tcl script:

---------
package require inifile
package require fileutil
::fileutil::touch "/tmp/test.ini"
set ini [::ini::open "/tmp/test.ini"]
::ini::set $ini "section" "key" "value"
::ini::commit $ini
-------