[Fwd: Re: howto submit patch]
Larry Evans
jcampbell3@prodigy.net
Sat, 19 Oct 2002 06:50:55 -0600
This is a multi-part message in MIME format.
--------------090607030204010806090708
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
--------------090607030204010806090708
Content-Type: message/rfc822;
name="Re: howto submit patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Re: howto submit patch"
>From - Fri Oct 18 18:07:38 2002
X-Mozilla-Status2: 00800000
Message-ID: <3DB0A23E.3090407@prodigy.net>
Date: Fri, 18 Oct 2002 18:07:26 -0600
From: Larry Evans <jcampbell3@prodigy.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Derek Atkins <warlord@MIT.EDU>
Subject: Re: howto submit patch
References: <3DB03132.2020908@prodigy.net> <sjm1y6ndafr.fsf@kikki.mit.edu> <3DB07114.4040302@prodigy.net> <sjmptu7a3n8.fsf@kikki.mit.edu>
Content-Type: multipart/mixed;
boundary="------------070006000708020006020809"
This is a multi-part message in MIME format.
--------------070006000708020006020809
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Derek Atkins wrote:
>1) please CC gnucash-devel or gnucash-patches with ALL your replies.
>2) this is not a unified diff, but it is better than nothing..
>
>I dont know if I will personally have the time to look at this soon,
>but I've forwarded it on in case someone else can. If you could resend
>a unified or context diff that would be great.
>
I just did a 'cvs update' and then renamed the just updated qif-parse.scm to
qif-parse.scm.old and compared with the patched qif-parse.scm with
`diff -u qif-parse.scm qif-parse.scm.old`.
The output is attached.
--------------070006000708020006020809
Content-Type: application/DEFANGED-121810; name="qif-parse_diff.DEFANGED-121810"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="qif-parse_diff.DEFANGED-121810"
--- qif-parse.scm Fri Oct 18 13:18:53 2002
+++ qif-parse.scm.old Fri Oct 18 18:00:07 2002
@@ -491,17 +491,13 @@
(string-remove-char
(string-remove-char value-string #\,)
#\$))
- (has-radix
- ( if (regexp-exec (make-regexp "^.*[.].*$") filtered-string)
- 1
- 0))
- (read-val
+ (read-val
(with-input-from-string filtered-string
(lambda () (read)))))
(if (number? read-val)
(gnc:double-to-gnc-numeric
(+ 0.0 read-val) GNC-DENOM-AUTO
- (logior (GNC-DENOM-SIGFIGS (- (string-length filtered-string) has-radix))
+ (logior (GNC-DENOM-SIGFIGS (- (string-length filtered-string) 1))
GNC-RND-ROUND))
(gnc:numeric-zero))))
((comma)
@@ -511,17 +507,13 @@
(string-remove-char value-string #\.)
#\, #\.)
#\$))
- (has-radix
- ( if (regexp-exec (make-regexp "^.*[,].*$") filtered-string)
- 1
- 0))
(read-val
(with-input-from-string filtered-string
(lambda () (read)))))
(if (number? read-val)
(gnc:double-to-gnc-numeric
(+ 0.0 read-val) GNC-DENOM-AUTO
- (logior (GNC-DENOM-SIGFIGS (- (string-length filtered-string) has-radix))
+ (logior (GNC-DENOM-SIGFIGS (- (string-length filtered-string) 1))
GNC-RND-ROUND))
(gnc:numeric-zero))))
((integer)
--------------070006000708020006020809--
--------------090607030204010806090708
Content-Type: text/sanitizer-log; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="sanitizer.log"
This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.
Sanitizer (start="1035028349"):
Part (pos="885"):
SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
Match (rule="2"):
Enforced policy: accept
Part (pos="1017"):
Part (pos="158"):
Part (pos="678"):
SanitizeFile (filename="unnamed.txt", mimetype="text/plain"):
Match (rule="2"):
Enforced policy: accept
Part (pos="1371"):
SanitizeFile (filename="qif-parse.diff", mimetype="text/plain"):
Match (rule="default"):
Enforced policy: defang
Replaced mime type with: application/DEFANGED-121810
Replaced file name with: qif-parse_diff.DEFANGED-121810
Total modifications so far: 1
Anomy 0.0.0 : Sanitizer.pm
$Id: Sanitizer.pm,v 1.54 2002/02/15 16:59:07 bre Exp $
--------------090607030204010806090708--