r17104 - gnucash/branches/2.2/src - [r17063] Bug #396665: When any QIF file content is found that is not encoded in UTF-8,
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Apr 20 15:23:42 EDT 2008
Author: andi5
Date: 2008-04-20 15:23:41 -0400 (Sun, 20 Apr 2008)
New Revision: 17104
Trac: http://svn.gnucash.org/trac/changeset/17104
Modified:
gnucash/branches/2.2/src/core-utils/core-utils.i
gnucash/branches/2.2/src/core-utils/core-utils.scm
gnucash/branches/2.2/src/core-utils/gnc-glib-utils.c
gnucash/branches/2.2/src/core-utils/gnc-glib-utils.h
gnucash/branches/2.2/src/import-export/qif-import/qif-file.scm
Log:
[r17063] Bug #396665: When any QIF file content is found that is not encoded in UTF-8,
the importer now first attempts to convert it to UTF-8 according to the locale.
If this fails, the offending bytes will be removed from the string as usual.
In addition, the user will now be informed of either of these actions via a
pop-up warning in the GUI. Each occurrence will also be logged.
This changeset also exposes the previously static GnuCash-specific UTF-8
validation C function, gnc_utf8_validate(), and creates a corresponding
Scheme predicate named "gnc-utf8?" for validating strings in this manner.
Committed by cedayiv.
More information about the gnucash-patches
mailing list