X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcharconv.tcl;h=f09b82ebbe0e9707a0423d261f6945049ef270aa;hb=173f78f50536784bdc6a59d4586ba409b2b69182;hp=4412c2a3438122af373ddce172b6f652ef8107d4;hpb=d940392c53c32ccf76fb287cc5b997b9e921a431;p=yaz-moved-to-github.git diff --git a/src/charconv.tcl b/src/charconv.tcl index 4412c2a..f09b82e 100644 --- a/src/charconv.tcl +++ b/src/charconv.tcl @@ -414,7 +414,7 @@ if {![info exists ifiles]} { usage } -set ofilehandle [open $ofile w] +set ofilehandle [open ${ofile}.tmp w] preamble_trie $ofilehandle $ifiles $ofile foreach ifile $ifiles { @@ -422,4 +422,6 @@ foreach ifile $ifiles { } close $ofilehandle +file rename -force ${ofile}.tmp ${ofile} +