bug#20938: make-dynamic-state, with-dynamic-state & exceptions

2017-03-10 Thread Josep Portella Florit
On 03/07/2017 09:36 PM, Andy Wingo wrote: > Fixed in master now. Thanks again for the report :) I've just tested it; good work!

bug#20938: make-dynamic-state, with-dynamic-state & exceptions

2017-03-03 Thread Josep Portella Florit
On 03/01/2017 06:30 PM, Andy Wingo wrote: > On Wed 01 Mar 2017 16:11, Josep Portella Florit writes: >> (Today I've tested it with 2.1.7.22-fcebf and it still crashed.) > > Ack, I didn't actually test it! I thought a related fix in 2.1.7 would > have caught it. I wi

bug#20938: make-dynamic-state, with-dynamic-state & exceptions

2016-06-24 Thread Josep Portella Florit
El 24/06/16 a les 09:11, Andy Wingo ha escrit: > On Tue 30 Jun 2015 15:50, Josep Portella Florit writes: > >> This code crashes Guile 2.0.11: >> >> (define x (make-dynamic-state)) >> (with-dynamic-state x (lambda () (/ 1 0))) > > Related: http://thread.gm

bug#20938: More information

2016-03-13 Thread Josep Portella Florit
It doesn't crash Guile 1.8.8, but it does crash Guile 2.1.2, and this version outputs the following message about 2150 times: "Warning: Unwind-only `stack-overflow' exception; skipping pre-unwind handler."

bug#22667: string->bytevector encoding error

2016-02-14 Thread Josep Portella Florit
'string->bytevector' throws 'encoding-error' when the encoding is "UTF-16" and the length of the string is greater than 128. The same for the encoding "UTF-32" and a string of length greater than 64. Tested on Guile 2.0.11 and 2.1.2 with the same result. How to reproduce: (use-modules (ice-9 ic

bug#20938: Improved workaround

2015-06-30 Thread Josep Portella Florit
The workaround in my other message discards the return value of `with-dynamic-state'. I've improved it: (let ((w-d-s with-dynamic-state)) (set! with-dynamic-state (lambda (s p) (let* ((e #f) (r (w-d-s s (lambda () (catch #t p

bug#20938: make-dynamic-state, with-dynamic-state & exceptions

2015-06-30 Thread Josep Portella Florit
This code crashes Guile 2.0.11: (define x (make-dynamic-state)) (with-dynamic-state x (lambda () (/ 1 0))) For now I'm using this workaround: (let ((w-d-s with-dynamic-state)) (set! with-dynamic-state (lambda (s p) (let ((e #f)) (w-d-s s (lambda ()

bug#17634: "Unbound var" compilation error, lambda* & #:optional

2014-05-29 Thread Josep Portella Florit
Hi! Please, see the attached REPL session. Regards scheme@(guile-user)> ((lambda* (a #:optional (b (+ a 1))) b) 1) While compiling expression: ERROR: unbound var a-492 scheme@(guile-user)> (define f (lambda* (a #:optional (b (+ a 1))) b)) scheme@(guile-user)> (f 1) $2 = 2 scheme@(guile-user)> (

bug#15487: program-lambda-list & make-locale documentation

2013-09-29 Thread Josep Portella Florit
Barry Fishman Kevin J. Fletcher Josep Portella Florit Charles Gagnon Fu-gangqiang [...] I think my name should appear like this: [...] Barry Fishman Kevin J. Fletcher Josep Portella Florit Charles Gagnon Fu-g

bug#15228: [PATCH] Close output port of I/O pipes

2013-08-31 Thread Josep Portella Florit
There is a missing feature for pipes created with mode OPEN_BOTH: (use-modules (ice-9 popen)) (use-modules (rnrs io ports)) (let ((p (open-pipe "md5sum" OPEN_BOTH))) (put-string p "hello") (let ((x (get-string-all p))) (close-pipe p) x)) This code deadlocks in get-string-all because

bug#15152: put-char documentation

2013-08-21 Thread Josep Portella Florit
Hi! There is another little error in `doc/ref/api-io.texi'. The documentation for put-char ends abruptly: @deffn {Scheme Procedure} put-char port char Writes @var{char} to the port. The @code{put-char} procedure returns @end deffn It should be: @deffn {Scheme Procedure} put-char port char Writ

bug#15136: get-string-all documentation

2013-08-19 Thread Josep Portella Florit
Hi! In the documentation for get-string-all, on module (rnrs io ports), it says: Scheme Procedure: get-string-all textual-input-port count But it really only receives one argument, not two. Link to the error in the documentation source: http://git.savannah.gnu.org/cgit/guile.git/tree/doc/r

bug#14859: my-or macro in documentation

2013-07-13 Thread Josep Portella Florit
Hi! The my-or example macro in the documentation has a subtle bug. (letrec-syntax ((my-or (syntax-rules () ((my-or) #t) ((my-or exp) exp)