bug#35920: strftime incorrectly assumes that nstrftime will produce UTF-8

2019-05-26 Thread Christopher Lam
Thanks! I'm glad to know this. I have adequate fluency in guile now but very basic C hence some bugs are very opaque to me. On Mon., 27 May 2019, 04:43 Mark H Weaver, wrote: > Hi Christopher, > > Christopher Lam writes: > > > Addendum - wish to confirm if guile bu

bug#38617: should internal defines be callable with incorrect number of args?

2019-12-14 Thread Christopher Lam
See snippet below. IMHO the second call to add1 should fail. On guile-2.2.6 it does not error out. On guile-2.0 it does throw error (as I think it should). Is this intentional? =-=-= (define (main) (define (add1 num) (+ num 1)) (display "testing") (display (add1 2)) (display (add1 2 3)

bug#42757: calling internal define with incorrect n(args) gives invalid error

2020-08-08 Thread Christopher Lam
Using guile 3.0.1 (also tested with 3.0.4) Consider following snippet -- (define (outer-function) (define (inner-function q w e r t y) ;takes 6 args #f) (inner-function 'a 'b 'c 'd 'e)) ;send 5 args (outer-function) -- The internally defined function is called with insufficie

bug#58109: simple-format vs (ice-9 format) bug in 3.0.7?

2022-09-27 Thread Christopher Lam
Hi guilers, here's a short bash session. Why would the first bash call to "guile s.scm" work, but not the second one? guile-3.0.7 on ubuntu. $ cat s.scm (format #t "~f\n" 2.5) $ guile s.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or p

bug#59984: segfault in list-ref

2022-12-11 Thread Christopher Lam
Hi guile dev team Here's a glaring segfault in guile 3.0.8 GNU Guile 3.0.8 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; t

bug#63196: sxml or guile bug?

2023-04-30 Thread Christopher Lam
Hi, we've identified an unusual behaviour in writing a test in gnucash. Can anyone reproduce and confirmit? I paste a simple .scm file, and its input test-file.html. Now, in sxml-bug.scm, modify the index - from -1 to -2 i.e. access the last/penultimate row etc. Odd negative indices work, even n

bug#63196: Further on this error message

2023-04-30 Thread Christopher Lam
The source seems to be sxpath.scm -- see "yikes" error which triggers when n is -2 -4 -6 etc. I don't know how to build guile from sources and cannot debug further. (define (node-pos n) (lambda (nodeset) (cond ((not (nodeset? nodeset)) '()) ((null? nodeset) nodeset) ((eqv? n