bug#30066: 'get-bytevector-some' returns only 1 byte from unbuffered ports

2018-01-12 Thread Andy Wingo
On Thu 11 Jan 2018 22:55, Mark H Weaver writes: > l...@gnu.org (Ludovic Courtès) writes: > >> Mark H Weaver skribis: >> >>> l...@gnu.org (Ludovic Courtès) writes: >> >> [...] >> + if (SCM_UNBUFFEREDP (port) && (avail < max_buffer_size)) +{ + /* PORT is unbuffered. Read

bug#30066: 'get-bytevector-some' returns only 1 byte from unbuffered ports

2018-01-12 Thread Ludovic Courtès
Andy Wingo skribis: > On Thu 11 Jan 2018 22:55, Mark H Weaver writes: [...] Out of curiosity, is there a reason why you're using an unbuffered port in your use case? >>> >>> It’s to implement redirect à la socat: >>> >>> >>> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=17

bug#30066: 'get-bytevector-some' returns only 1 byte from unbuffered ports

2018-01-12 Thread Andy Wingo
On Fri 12 Jan 2018 11:15, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> On Thu 11 Jan 2018 22:55, Mark H Weaver writes: > > [...] > > Out of curiosity, is there a reason why you're using an unbuffered port > in your use case? It’s to implement redirect à la

bug#30094: [wishlist] better support for alternative languages

2018-01-12 Thread Ricardo Wurmus
Hi Guilers, since Guile supports alternative language implementations like Wisp it would be nice if it could interpret files that contain code written in other languages, without having to specially cater to them. If GUILE_LOAD_PATH contains a file “foo.wisp” written in Wisp it would be nice if G