problem with qif-parse.scm in trunk

David Reiser dbreiser at earthlink.net
Wed Sep 17 01:21:27 EDT 2008


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.

Well, here's some Apple regex oddity: The regex parser apparently  
doesn't like higher-than-ascii utf-8 unless the file it's working on  
starts with a utf-8 BOM (0xefbbbf). I can't even grep qif-parse.scm  
for the GBP symbol -- there is no output from the grep command. If I  
use bbedit to prepend the three hex bytes to the file, then grep  
successfully finds the symbols. But if the .scm file starts with the  
BOM, gnucash launch now fails with:

Backtrace:
In unknown file:
    ?: 0* [primitive-load-path "qif-import/qif-parse.scm"]

<unnamed port>: In procedure primitive-load-path in expression  
(primitive-load-path name):
<unnamed port>: Unbound variable: 

Dave
--
David Reiser
dbreiser at earthlink.net






More information about the gnucash-devel mailing list