problem with qif-parse.scm in trunk

Charles Day cedayiv at gmail.com
Tue Sep 16 03:58:58 EDT 2008


On Mon, Sep 15, 2008 at 11:36 PM, David Reiser <dbreiser at earthlink.net>wrote:

>
> On Sep 16, 2008, at 2:12 AM, David Reiser wrote:
>
> >
> > On Sep 15, 2008, at 10:24 AM, Andreas Köhler wrote:
> >
> >> Hi David,
> >>
> >> On Mon, 2008-09-15 at 00:30 -0400, David Reiser wrote:
> >>> On Sep 14, 2008, at 4:05 PM, Charles Day wrote:
> >>>
> >>>> On Sun, Sep 14, 2008 at 10:42 AM, David Reiser
> >>>> <dbreiser at earthlink.net> wrote:
> >>>> gnucash trunk r17505 fails on launch for me with:
> >>>>
> >>>> Backtrace:
> >>>> In unknown file:
> >>>> ?: 0* [primitive-load-path "qif-import/qif-parse.scm"]
> >>>> In /opt/gnucash-svn/share/gnucash/scm/qif-import/qif-parse.scm:
> >>>> 20: 1* (define decimal-radix-regexp #)
> >>>> 21: 2* [gsubr-apply #<primitive-procedure make-regexp> ...]
> >>>>
> >>>> /opt/gnucash-svn/share/gnucash/scm/qif-import/qif-parse.scm:21:3:
> >>>> In
> >>>> procedure make-regexp in expression (make-regexp "^ *[$?]?[+-]?
> >>>> [$?]?
> >>>> [0-9]+[+-]?$|^ *[$?]?[+-]?[$?]?[0-9]?[0-9]?[0-9]?([,'][0-9][0-9]
> >>>> [0-9])*(\\.[0-9]*)?[+-]? *$|^ *[$?]?[+-]?[$?]?[0-9]+\\.
> >>>> [0-9]*[+-]? *
> >>>> $"):
> >>>> /opt/gnucash-svn/share/gnucash/scm/qif-import/qif-parse.scm:21:3:
> >>>> illegal byte sequence
> >>>>
> >>>>
> >>>> Looks like something in r17490 didn't sit well with my tool set.
> >>>>
> >>>> Mac OS X 10.5.4
> >>>> gcc 4.0.1, autoconf 2.62 (2.63 readily available), automake 1.9.6
> >>>> (1.10.1 readily available)
> >>>> guile 1.8.3
> >>>>
> >>>> suggestions?
> >>>>
> >>>> Dave, I have just committed a patch that escapes the Pound symbol
> >>>> in
> >>>> ASCII. Try updating your SVN to r17509 and see if that fixes it on
> >>>> your system.
> >>>>
> >>>>
> >>>> Cheers,
> >>>> Charles
> >>>
> >>> Same error. I've looked at the scm file in the install directory,
> >>> and
> >>> all the \xa3 substitutions are there. (In the prior version, bbedit
> >>> was showing me the GBP symbol in the scm files, too.)
> >>>
> >>> The only other thing I can think of that might matter is I'm using
> >>> slib 3b1.
> >>
> >> I cannot find that error message, neither in Guile 1.8.3 nor Slib
> >> 3b1.
> >> Do you know whether it comes from?
> >>
> >> Ciao,
> >> -- andi5
> >>
> > Looks like it is coming from Apple's libSystem.dylib. I'll see if I
> > can find someone who knows about any Apple regex oddities.
> >
> > Dave
> > --
> > David Reiser
> > dbreiser at earthlink.net
> >
> One suggestion I got from the fink folk is that perhaps Apple's realm
> is not picking up on the .scm file being utf-8. Is there some
> declaration available for scm files that can help the system on that?
>

Unless I missed something, all the QIF-related .scm files from the updated
verson (r17509) should be pure ASCII, making it 100% compatible with UTF-8
from a file standpoint. Maybe the problem is that once the string is parsed
by Scheme it would become a non-UTF-8 byte sequence (in memory). Perhaps
some Apple library that Guile depends on is complaining about that. Just a
wild guess.

Just to double-check... Have you verified that your installed .scm files are
the new ones? (I don't know about on Apple, but rebuilding GnuCash on
Windows doesn't necessarily update the installed .scm files.)


> Dave
> --
> David Reiser
> dbreiser at earthlink.net
>
>
-Charles


More information about the gnucash-devel mailing list