Talk:Bayes

From GnuCash
Revision as of 10:07, 11 February 2016 by Jim DeLaHunt (talk | contribs) (+Bug: Silently fails on compressed XML file)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Bug: Silently fails on compressed XML file

When I tried this utility on an XML file saved from GnuCash 2.6, I found that the utility ran forever, and made a steadily larger output file. I interrupted it when it got to 100MB or so, but it would have continued.

The problem appeared to be that my GnuCash XML file was gzip-compressed. I didn't notice this, because my text editor had no problem showing the file. It must be smart enough to remove the gzip compression automatically as it opened the file. However, the command head -1 myfile.xml.gnucash showed that the file was binary.

My workaround was to use gzip -c myfile.xml.gnucash >myfile.xml to remove the gzip compression.