problem with qif-parse.scm in trunk

Charles Day cedayiv at gmail.com
Mon Sep 22 12:41:19 EDT 2008


On Mon, Sep 22, 2008 at 8:13 AM, Derek Atkins <warlord at mit.edu> wrote:

> Quoting David Reiser <dbreiser at earthlink.net>:
>
> >
> > On Sep 22, 2008, at 10:17 AM, Derek Atkins wrote:
> >
> >> David Reiser <dbreiser at earthlink.net> writes:
> >>
> >>> As it exists currently, qif-parse.scm does not work, even with the
> >>> escaped version of a3. However, if I change \xa3 to \\xa3, gnucash
> >>> will run. That looks like a escaping/quoting inconsistency among
> >>> systems. Is that any easier to solve than the base encoding problem?
> >>
> >> If you change it to \\xa3 then does it properly deal with the £ in
> >> the QIF?
> >>
> >>>
> >> -derek
> >
> >
> > I don't know. Is there a sample qif file I can test? What will I be
> > looking for?
>
> See http://bugzilla.gnome.org/show_bug.cgi?id=141003
>

Doubling up the backslashes should break the fix, as then the backslash
loses its special regex expression meaning.

Please see the simple QIF file attached. It contains the British Pound
symbol in ISO 8859-1 (0xA3). This is what the QIF importer needs to be able
to handle. Here is the output of 'od':
$ od -c 141003a.qif
0000000   !   A   c   c   o   u   n   t  \n   N   M   y       C   r   e
0000020   d   i   t       C   a   r   d  \n   T   C   C   a   r   d  \n
0000040   ^  \n   !   T   y   p   e   :   C   C   a   r   d  \n   D   2
0000060   2   /   0   9   /   2   0   0   8  \n   P   T   e   s   t
0000100   p   a   y   e   e  \n   T 243   3   8   .   4   6  \n   ^  \n
0000120

-Charles


> > Dave
> > --
> > David Reiser
> > dbreiser at earthlink.net
>
> -derek
>
> --
>       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>       Member, MIT Student Information Processing Board  (SIPB)
>       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>       warlord at MIT.EDU                        PGP key available
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 141003.qif
Type: application/octet-stream
Size: 3819 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20080922/95df4183/attachment.obj 


More information about the gnucash-devel mailing list