inifile parser in tcllib

Bug #1000730 reported by Claus Wetzel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tcllib (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Bug in /usr/share/tcltk/tcllib1.14/inifile/ini.tcl

here is the diff:

92c92
< ::close $channel
---
> close $channel

Revision history for this message
matanya (matmo) wrote :

please add more information:

1) what have you been doing
2) what did you expect to happen
3) what happened.
4) how can we reproduce this issue, if applicable.

Thanks

Changed in tcllib (Ubuntu):
status: New → Incomplete
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
-------

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tcllib (Ubuntu) because there has been no activity for 60 days.]

Changed in tcllib (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.