r14363 - gnucash/trunk - Similarly ensure for aqbanking/mt940 import that all retrieved strings

David Hampton hampton-gnucash at rainbolthampton.net
Wed Jun 14 16:04:02 EDT 2006


On Wed, 2006-06-14 at 15:49 -0400, Christian Stimming wrote:
> Author: cstim
> Date: 2006-06-14 15:49:25 -0400 (Wed, 14 Jun 2006)
> New Revision: 14363
> Trac: http://svn.gnucash.org/trac/changeset/14363
> 
> Modified:
>    gnucash/trunk/ChangeLog
>    gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.c
> Log:
> Similarly ensure for aqbanking/mt940 import that all retrieved strings
> will be valid utf8.

I noticed that the hbci protocol specifies utf-8 and then the data is
converted to the local code set.  I was going to commit the following
change so that hbci data remained as utf8.


Index: src/import-export/hbci/gnc-hbci-utils.c
===================================================================
---src/import-export/hbci/gnc-hbci-utils.c	(revision 14353)
+++ src/import-export/hbci/gnc-hbci-utils.c	(working copy)
@@ -628,12 +628,7 @@
 
 const char *gnc_hbci_book_encoding()
 {
-#if HAVE_LANGINFO_CODESET
-  char* encoding = nl_langinfo(CODESET);
-#else
-  char* encoding = "UTF-8";
-#endif
-  return encoding;
+  return "UTF-8";
 }


Would this change have fixed my940 as well, or is it hbci specific?

David




More information about the gnucash-devel mailing list