reports broken on RH9, part 2

Greg Woods greg at gregandeva.net
Tue Apr 22 13:11:50 CDT 2003



Thanks to Derek Atkins who gave me the hint to look for "'(" in the
archives (which occurs much less frequently than does "report", so this
greatly speeds up the searching process :-) where I found the patch
below. Unfortunately, after I applied it, it did not fix my problem. All
transaction reports still bomb out with "error running report". I am
certain that I applied the patch correctly: I have double and triple
checked. The file in which this occurs under RH9 is
"/usr/share/gnucash/guile-modules/gnucash/main.scm".

Now, please forgive this next probably stupid question. I am an
experienced system administrator and programmer, but I am not familiar
with the GnuCash code and I know nothing about Scheme.

I installed from RPMs, not from source. Do I have to install from source
in order to be able to apply patches to scm files? If not, is there
something I need to do after modifying an scm file to get the patch to
"take"? (I was under the impression that Scheme was an interpreted
language, am I wrong?)

For what it's worth, I tried this on a system that I had upgraded to
1.8.2, and another one that had the vanilla 1.8.1 RPM from RH9, with the
same result.

-- 
Greg Woods <greg at gregandeva.net>


--- src/scm/main.scm~    Thu Mar 13 16:13:44 2003
+++ src/scm/main.scm    Thu Apr  3 11:14:25 2003
@@ -318,8 +318,8 @@
     ;; LC_ALL for those systems.
     (let* ((locale (or (false-if-exception (setlocale LC_MESSAGES))
                       (setlocale LC_ALL)))
-           (strings (cond ((not (string? locale)) ())
-                          ((equal? locale "C") ())
+           (strings (cond ((not (string? locale)) '())
+                          ((equal? locale "C") '())
                           ((<= (string-length locale) 4) (list locale))
                           (else (list (substring locale 0 2)
                                       (substring locale 0 5)

-- 
Greg Woods <greg at gregandeva.net>



More information about the gnucash-user mailing list