After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 719471 - Unused commodities saved to XML file
Unused commodities saved to XML file
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Backend - XML
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2013-11-28 08:43 UTC by Baptiste Carvello
Modified: 2018-06-29 23:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
minimal XML file with all commodities included (61.41 KB, application/x-gnucash)
2013-11-28 08:43 UTC, Baptiste Carvello
Details

Description Baptiste Carvello 2013-11-28 08:43:27 UTC
Created attachment 263004 [details]
minimal XML file with all commodities included

Hello,

when saving an XML file from GnuCash 2.5.8 (the same was not observed with 2.4.10), the resulting XML file includes "<commodity>" blocks for all possible currencies, each providing only the "user_symbol" slot.

This seems not to be by design, because the commodity count at the start of book is still equal to 1 ('<gnc:count-data cd:type="commodity">1</gnc:count-data>').

This is suboptimal because:
- the commodity count is not consistent with the data
- those many unused commodities lengthen and complicate the file for no good reason, and might break scripts which worked with 2.4 (I know these are weak reasons)
- the file now includes non-ASCII characters, which might break misconfigured systems (you know, like the one at your prefered tax office...)

Cheers,

Baptiste
Comment 1 Geert Janssens 2013-11-28 08:49:47 UTC
This problem has been fixed in the development version (right after 2.5.8 got released). The fix will be available in the next major software release. Thank you for your bug report.
Comment 2 John Ralls 2018-06-29 23:22:03 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=719471. Please update any external references or bookmarks.