[grisbi-bugs] [Grisbi-0.6.0 0000657]: Impossible to add/merge categories into new accounts file

bugtracker at grisbi.org bugtracker at grisbi.org
Mon Oct 5 23:17:36 CEST 2009


The following issue has been UPDATED. 
====================================================================== 
http://grisbi.tuxfamily.org/mantis/view.php?id=657 
====================================================================== 
Reported By:                guneeyoufix
Assigned To:                
====================================================================== 
Project:                    Grisbi-0.6.0
Issue ID:                   657
Category:                   Main
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     confirmed
Plateforme:                 Windows 
OS:                         Windows 
Version OS:                 Vista Familiale Premium 
Unstable Impact:            Yes 
Version GTK:                 
====================================================================== 
Date Submitted:             09-30-2009 21:52 UTC
Last Modified:              10-05-2009 21:17 UTC
====================================================================== 
Summary:                    Impossible to add/merge categories into new accounts
file
Description: 
After creating and opening a brand new accounts file with no categories
because of bug 656 (http://grisbi.tuxfamily.org/mantis/view.php?id=656 ), I
tried to add categories using the menus.

In the file explorer that popped up, I selected a .cgsb file located in
share/categories/fr (grabbed from CVS) and clicked ok. That resulted in a
pop up window telling me that the file was not a proper Grisbi category
file.
====================================================================== 

---------------------------------------------------------------------- 
 guneeyoufix - 10-05-09 16:24  
---------------------------------------------------------------------- 
The category catalogs are indeed not identified as such by the windows
version of grisbi.

This comes from the direct comparison of files in src/gsb_file_others.c,
line 585 and following :

	    if ( !strncmp ( file_content,
			    "<?xml version=\"1.0\"?>\n<Grisbi_categ>",
			    36 ))

This works fine on Linux, but fails on Windows because of the end of line
characters (\n on Linux, \r\n on Windows).

--> Decide how to treat this issue

 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-30-09 21:52  guneeyoufix    New Issue                                    
09-30-09 21:52  guneeyoufix    Plateforme                => Windows         
09-30-09 21:52  guneeyoufix    OS                        => Windows         
09-30-09 21:52  guneeyoufix    Version OS                => Vista Familiale
Premium
09-30-09 21:52  guneeyoufix    Unstable Impact           => Yes             
10-05-09 16:23  guneeyoufix    Note Added: 0001175                          
10-05-09 16:23  guneeyoufix    Status                   new => confirmed    
10-05-09 16:24  guneeyoufix    Note Edited: 0001175                         
10-05-09 21:17  guneeyoufix    Description Updated                          
======================================================================



More information about the bugsreports mailing list