bug#20339: sxml simple: sxml->xml mishandles namespaces?

2015-04-15 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I posted more details on guile-devel. Perhaps this was the wrong list? When transforming SXML to XML, namespaces don't seem to be handled properly: #!/usr/bin/guile -s !# (use-modules (sxml simple)) ;; An XML with two namespaces (one

bug#20339: [PATCH] sxml->xml and namespaces: updated patch

2015-04-20 Thread tomas
Hi, I've embellished my proposed patch a bit: - use values resp. call-with-values instead of passing around lists. This was one thing I didn't like about my first patch candidate: the namespace --> ns abbreviation lookup had two things to return, for noe the abbreviation, and whethe

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2015-04-21 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Apr 21, 2015 at 11:24:03AM +0200, Ricardo Wurmus wrote: > Hi Tomás, > > to...@tuxteam.de writes: > > > When transforming SXML to XML, namespaces don't seem to be handled > > properly: > > > [...] > > > > The problem is that SXML used the conc

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2015-04-22 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Apr 22, 2015 at 04:29:32PM +0200, Ricardo Wurmus wrote: > >> Since xml->sxml accepts a namespace alist I suppose it would make sense > >> to extend sxml->xml to do the same. > > Attached is a minimal patch to extend "sxml->xml" such that it ac

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2015-04-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Apr 23, 2015 at 09:04:46AM +0200, Ricardo Wurmus wrote: > > to...@tuxteam.de writes: > > > What's yet missing (as far as I can read off the diff) is a way to > > "dream up" an abbreviation when it's not in the namespaces alist. > > True. >

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2015-04-25 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Apr 22, 2015 at 04:29:32PM +0200, Ricardo Wurmus wrote: > >> Since xml->sxml accepts a namespace alist I suppose it would make sense > >> to extend sxml->xml to do the same. > > Attached is a minimal patch to extend "sxml->xml" such that it ac

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2015-04-26 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Apr 25, 2015 at 10:25:09PM +0200, to...@tuxteam.de wrote: [...] > Reading again Oleg Kiselyov's paper[1] I understand that SXML can, as does > XML have namespace abbreviations (called there user-ns-shortcut). It's not > exctly the same thing,

bug#21373: compile for development version from git fails on OpenBSD

2015-08-29 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Aug 28, 2015 at 09:47:51PM -0400, Jamil Egdemir wrote: > Hi Guys, > > I just pulled the latest from the git repo and the build failed on > OpenBSD 5.6 (output from dmesg is all the way at the bottom if that > helps): > > $ git clone http://gi

bug#21855: eq?

2015-11-08 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Nov 07, 2015 at 01:58:48PM +0100, Atticus wrote: > So I wanted to try out gnu guix and thus make myself more familiar with > guile first. While running some tests I encountered a problem/bug with eq?: > > $ guile -v > guile (GNU Guile) 2.1.1 >

bug#21855: eq?

2015-11-08 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Nov 08, 2015 at 02:30:42PM +0100, Atticus wrote: [...] > Yes you are right that the implementation may treat it as non #f if both > arguments refer to the same object. In r5rs (and also r6rs) (eq? '(a) > '(a)) is unspecified (r5rs, page 19) a

bug#18592: FFI should have portable access to ‘errno’

2016-01-05 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jan 05, 2016 at 10:24:35AM +0800, Chaos Eternal wrote: > On Tue, Jan 5, 2016 at 3:14 AM, Nala Ginrut wrote: > > Hi Mark! > > Thanks for all the advices. > > > > Here's the new patch according to your advices. > > Include: > > 1. Added new proc

bug#18592: FFI should have portable access to ‘errno’

2016-03-03 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Mar 03, 2016 at 12:36:15PM -0500, Mark H Weaver wrote: > Nala Ginrut writes: > > > Is there still problem? I'm fine with the patch, and I'm expecting to > > merge it ASAP. Anyway, please don't hesitate to tell me if there's still > > any prob

bug#23739: Unexpected behavior of 'add-to-load-path'.

2016-06-10 Thread tomas
share/guile/site" "/usr/share/guile")) > --8<---cut here---end--->8--- I can confirm half of it :-) I mean: the double entry "foo" for %load-path in your first result above doesn't happen for me. Could that be a typo? As f

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2016-07-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jun 23, 2016 at 09:32:16PM +0200, Andy Wingo wrote: > See thread here as well: > http://thread.gmane.org/gmane.lisp.guile.devel/17709 > > I like Ricardo's patch but have some comments here: > http://article.gmane.org/gmane.lisp.guile.devel/183

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2016-07-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Jul 13, 2016 at 03:24:03PM +0200, to...@tuxteam.de wrote: [...] > What is missing? From my point of view: > > - At xml->sxml time, the user doesn't know which namespaces >are in the xml. So it would be nice if the XML parser >could

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2016-07-14 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Jul 14, 2016 at 12:10:17PM +0200, Andy Wingo wrote: > Hi :) > > On Wed 13 Jul 2016 15:24, to...@tuxteam.de writes: > > > Referring to Oleg Kiseliov's paper [1], there are actually three > > things involved: > > This summary is helpful, thank

bug#24659: 'mkdir' procedure is neither thread-safe nor safe (2.0.12)

2016-10-10 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Oct 10, 2016 at 06:39:47PM +0200, Ludovic Courtès wrote: > Hello! [...] > Furthermore, AFAICS, the above logic is redundant with what the kernel > does anyway. That is, in a single-threaded program, > > mask = umask (0); > umask (mask);

bug#26151: date-year-day screws up leap days prior to AD 1

2017-03-18 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Mar 18, 2017 at 01:10:58AM +, Zefram wrote: [...] > Where did you get the idea to use a non-linear year numbering? What's > your opinion of SRFI-19's (lack of) text on this matter? You should > consider the possibility of changing your

bug#26221: (define function nil should work in 2.2

2017-03-24 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, Mar 23, 2017 at 07:59:04PM +, Joshua Branson wrote: > > I can confirm this bug. Eshell accepts (defun hello nil (print “Hello")) > And (hello) works properly. > > M-x guiler > > ,languages elisp > > (defun hello nil (print “Hello”))

bug#29684: exception printers - request for improvement

2018-07-04 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jul 03, 2018 at 04:31:23PM -0300, David Pirotte wrote: > Hi Ludovic, > > > > It is perfectly fine, on the opposite side, to ask advanced scheme users > > > (who > > > would want to, but I really don't see the point) configure guile s the > >

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2019-02-12 Thread tomas
On Mon, Feb 04, 2019 at 09:44:02PM +0100, Ricardo Wurmus wrote: > Hello! > > I just looked at this again and I think I came with something useful. > Here’s some context: [...] > Attached is a patch that does the requested things. The parser > procedures like FINISH-ELEMENT have access to all th

bug#34457: GNU Guile: Error in docstring of proc reverse-list->string

2019-02-12 Thread tomas
On Tue, Feb 12, 2019 at 03:34:06PM +0400, Андрей wrote: > Good day! > > The docstring of `reverse-list->string` proc says: > ``` > scheme@(guile-user)> (help reverse-list->string ) > `reverse-list->string' is a procedure in the (guile) module. > > - Scheme Procedure: reverse-list->string chrs >

bug#20339: sxml simple: sxml->xml mishandles namespaces?

2019-04-08 Thread tomas
ning: possibly unbound variable `xml->sxml' ;;; note: source file ./sxml/simple.scm ;;; newer than compiled /usr/local/lib/guile/2.2/ccache/sxml/simple.go ;;; found fresh local cache at /home/tomas/.cache/guile/ccache/2.2-LE-8-3.A/home/tomas/guile/sxml-fix/sxml/simple

bug#20339: Taking a step back (was: sxml simple: sxml->xml mishandles namespaces?)

2019-05-03 Thread tomas
Hi, after mulling over it for a while, I think it's time to take a step back and think a bit about where we'd like to go with this. Note that I'm ignoring technical details (the fact that the SXML, and thus the XML serialization now has namespace declarations everywhere down the path instead of j

bug#36251: Regex library doesn't recognize ']' in a character class

2019-06-16 Thread tomas
On Sun, Jun 16, 2019 at 08:16:29PM +0300, Abdulrahman Semrie wrote: > > I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or right > bracket in it. However, the string-match function doesn’t match the ‘]’ > character. To demonstrate with an example, try the following funciton: >

bug#36251: Regex library doesn't recognize ']' in a character class

2019-06-18 Thread tomas
On Tue, Jun 18, 2019 at 07:08:06AM -0400, Mark H Weaver wrote: > Hi, > > Abdulrahman Semrie writes: > > > I am using the pattern [\\[\\]a-zA-Z]+ to match a string with left or > > right bracket in it [...] > It turns out that there are several flavors of regular expressions in > common use, wit

bug#38235: string-foldcase bug for trailing sigma

2019-11-17 Thread tomas
On Sat, Nov 16, 2019 at 09:41:05PM +0100, Andy Wingo wrote: > Given the following example, using (rnrs unicode): > > (string-foldcase "ΜΈΛΟΣ") Good catch. I think there's even a worse example: dotless and dotted I [1]. Here it seems even impossible to do up- and downcase correctly without knowi

bug#38398: non-obvious SCM_EOF_VAL rationale

2019-11-27 Thread tomas
On Wed, Nov 27, 2019 at 12:05:34PM +, Zefram via Bug reports for GUILE, GNU's Ubiquitous Extension Language wrote: [...] > But please don't get sidetracked. This wasn't a feature request for > "#eof" [...] To be fair, you contributed strongly to this side-tracking. By waving a big red flag

bug#38486: Compiler does not terminate

2019-12-04 Thread tomas
8.3.0. FWIW, I just tried with guile 2.9.5 and the compile terminates: tomas@trotzki:~$ guile /tmp/zack.scm ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /tmp/zack.scm ;;; compiled /home/tomas/.cache

bug#40008: Backtraces can contain very long strings

2020-03-10 Thread tomas
On Tue, Mar 10, 2020 at 11:05:24AM +0100, Jan Synacek wrote: > I have the following backtrace: > > Backtrace: > In ice-9/boot-9.scm: > 1736:10 9 (with-exception-handler _ _ #:unwind? _ # _) > In unknown file: >8 (apply-smob/0 #) > In ice-9/boot-9.scm: > 718:2 7 (call-with-promp

bug#40855: integer-length 0 should be 1

2020-04-26 Thread tomas
On Sat, Apr 25, 2020 at 11:15:40PM +0200, Bengt Richter wrote: > I'm hoping this is the right place to report this bug :) > > To reproduce, guile -c '(format #t "~s\n" (integer-length 0))' > Expected result if correct: 1 > Observed result: 0 > > The following is to support the opinion that 1 is t

bug#41320: sxml attributes of some elements are in reverse order

2020-05-16 Thread tomas
On Sat, May 16, 2020 at 12:29:54PM +0200, Jan Synacek wrote: > Consider the following code snippet running on Guile-3.0.2: [...] > [...] > (event (@ (number 2) (name KeyPress)) > Attributes 'number' and 'name' are in reverse compared to the original > xml. On the other hand, 'type' and '

bug#41320: sxml attributes of some elements are in reverse order

2020-05-16 Thread tomas
On Sat, May 16, 2020 at 02:27:15PM +0200, Jan Synacek wrote: [...] > > just imagine another XML processor in the middle changing > > attribute order. It would be spec compliant. What now? [...] > In the middle of the first processor reading the file? No, I was thinking much simpler than that.

bug#42012: Reference Manual and Docstring on number->string

2020-06-23 Thread tomas
On Tue, Jun 23, 2020 at 12:51:23AM +0200, Sebastian Miele wrote: > Guile 3.0.3. The reference manual and the docstring of number->string > say: "If N is inexact, a radix of 10 will be used." But that is not what > happens, e.g., > > (let ((x 4.0)) (and (inexact? x) (number->string x 3))) > > ev

bug#43326: [3.0.x] Regression: Compilation error involving strings

2020-09-11 Thread tomas
On Fri, Sep 11, 2020 at 03:31:24PM +0700, Erik Dominikus wrote: > Dear author(s) of the Guile 3.0.x compiler, > > Background: I would like to report a problem that I found while trying > to write a simple web server with get-string-n, sxml simple, and web > server. > > I have traced and reduced t

bug#43364: Possible bug with output redirection

2020-09-13 Thread tomas
On Sat, Sep 12, 2020 at 10:59:23PM +0200, pinoaffe wrote: > Dear guilers, > > When using with-output-to-string, the output of external processes > started using system* and the like is not redirected to the temporary > port. As far as I can tell, it just redirects things written/displayed > from w

bug#45923: Hot to intall Guile without Make

2021-01-17 Thread tomas
On Sat, Jan 16, 2021 at 11:42:18PM +0100, paul.eb...@mail.de wrote: > Hello everyone, I'm very sorry, if this is the wrong mail adress > for my problem, but I couldn't find another to seek for help. I > just thought that you are probably the expert for my question and > are maybe willing to hel

bug#45923: Hot to intall Guile without Make

2021-01-17 Thread tomas
On Sun, Jan 17, 2021 at 09:18:59PM +0100, Dr. Arne Babenhauserheide wrote: > > paul.eb...@mail.de writes: > > > is there a way to install Guile or Make on Manjaro without an internet > > connection and without having already installed one of them? > > You’ll need to build and install make once w

bug#46014: (define (thunk) (lambda (x) x)) should be a compile error?

2021-01-22 Thread tomas
On Fri, Jan 22, 2021 at 09:47:24AM -0500, jbranso--- via Bug reports for GUILE, GNU's Ubiquitous Extension Language wrote: > Ricardo Wurmus writes: > > > Hi Joshua, > > > >> When I look at > >> > >> #+BEGIN_SRC scheme > >> (define (thunk) > >>(lambda (x) > >> x)) > >> #+END_SRC > > > >

bug#46447: segfault with bugnum

2021-02-11 Thread tomas
On Thu, Feb 11, 2021 at 09:54:38PM +0100, Ricardo Wurmus wrote: > This program sometimes causes Guile 3.0.5 to segfault: > > (define a (expt 2 (expt 3 (expt 4 2 > (display (remainder a 10)) > (display "\n") > > And sometimes this program doesn’t terminate. Here’s an example > s

bug#51133: [PATCH 1/1] Tolerate http response line without reason phrase

2021-10-12 Thread tomas
On Tue, Oct 12, 2021 at 10:26:22AM +0200, Alexey Abramov via Bug reports for GUILE, GNU's Ubiquitous Extension Language wrote: > Hi, > > I agree that it is not a complient http response, According to The Book [1] ;-) there should be at least one space (SP) (as far as I understand this is really

bug#59221: (file-exists? #f) raises an exception

2022-11-12 Thread tomas
On Sun, Nov 13, 2022 at 02:15:43AM +, jbranso--- via Bug reports for GUILE, GNU's Ubiquitous Extension Language wrote: > November 12, 2022 12:58 PM, "Jean Abou Samra" wrote: > > >> Le 12 nov. 2022 à 18:50, Joshua Branson via Bug reports for GUILE, GNU's > >> Ubiquitous Extension > >> Langua

bug#59321: ice-9's open-input-pipe is unexpectedly slow on some systems

2022-11-17 Thread tomas
On Fri, Nov 18, 2022 at 02:49:05PM +1000, Andrew Whatson wrote: > Hi Nate, > > Thanks for reporting this! I'm able to reproduce on my systems, and > have identified the culprit: [250k calls to close()] Well spotted. Here [1] is a good discussion on the problem. Spoiler alert: there is no nice,

bug#59321: ice-9's open-input-pipe is unexpectedly slow on some systems

2022-11-20 Thread tomas
On Sun, Nov 20, 2022 at 06:24:57PM +0100, Ludovic Courtès wrote: > Hi, > > Andrew Whatson skribis: > > > Forcibly closing file descriptors like this shouldn't be necessary if > > the application has properly opened descriptors with the FD_CLOEXEC > > flag. It would be good to get input from som

bug#59874: Segfault from string-ref with negative 'k'

2022-12-07 Thread tomas
e) just installed from the repositories. Hi, this is Debian GNU/Linux, x86_64, but a self-compiled Guile: | tomas@trotzki:~$ guile | GNU Guile 3.0.8.57-bc3b1 | Copyright (C) 1995-2022 Free Software Foundation, Inc. | | Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. |

bug#60522: make-vector takes 100% cpu if called without argument in the REPL

2023-01-03 Thread tomas
On Tue, Jan 03, 2023 at 05:57:19PM +0100, Sascha Ziemann wrote: > The following throws an error: > guile -c '(make-vector)' > > But the evaluation of '(make-vector)' in the REPL generats just a warning: > > ;;; :1:0: warning: possibly wrong number of arguments to `make-vector' > > and seems to e

bug#60528: uri->string swallows mandatory slashes

2023-01-04 Thread tomas
On Tue, Jan 03, 2023 at 09:00:48PM +0100, Liliana Marie Prikler wrote: > Hi folks, > > Below some unexpected behaviour observed in Guile 3.0.8, but it also > dates back to 2.2.7 and possibly earlier versions. > > scheme@(guile-user)> ,use (web uri) > scheme@(guile-user)> (string->uri "file:///hom

bug#62053: Guile compiler is unable to compile tiny program

2023-03-08 Thread tomas
ment to disable. > ;;; compiling /home/amaya/tmp/guile-compiler-bug.scm > ;;; WARNING: compilation of /home/amaya/tmp/guile-compiler-bug.scm failed: > ;;; not found 22 >   > Compiler reports confusing message here: `not found 22’.    Bizarre. Can confirm tomas@trotzki:~/foo$ vim buggy.scm

bug#63196: Further on this error message

2023-05-06 Thread tomas
On Mon, May 01, 2023 at 10:44:18AM +0800, Christopher Lam wrote: > 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

bug#66135: Unable to download Guile tar file

2023-09-23 Thread tomas
It worked for me too. On Sat, Sep 23, 2023 at 09:19:54AM +0530, ahmad khizir wrote: > Not working for me, i can share the screenshot. Perhaps better if you describe what you are trying (how are you downloading, perhaps whether you are in a company or country which might enforce network restrictio

bug#66135: Unable to download Guile tar file

2023-09-24 Thread tomas
ou know. Thank you for the details! You may try the "-S" options to wget: this will print the HTTP headers, which might help in identifying the problem. If I do that, this is what I see: | tomas@trotzki:/tmp$ wget -S https://ftp.gnu.org/gnu/guile/guile-3.0.9.tar.gz | --202

bug#69438: basename faulty with nul and suffix

2024-02-27 Thread tomas
On Tue, Feb 27, 2024 at 08:14:58PM +, Zefram via Bug reports for GUILE, GNU's Ubiquitous Extension Language wrote: > Trying out the basename function in Guile 3.0.9: > > scheme@(guile-user)> (basename "foo/bar") > $1 = "bar" > scheme@(guile-user)> (basename "foo/bar" "r") > $2 = "ba" > scheme

bug#72612: (set! display #f) infinite loop

2024-08-13 Thread tomas
On Tue, Aug 13, 2024 at 07:06:09PM -0400, Bryce Moore wrote: > I know it's nonsensical, but (set! display #f) in a fresh interpreter > causes an infinite loop. > > Interrupting with Ctrl+C exits guile. > > scheme@(guile-user)> (set! display #f) > While reading expression: > Wrong type to apply: E

Re: Strange behaviour of array?

2002-11-15 Thread tomas
archives. I'm > surprised it's not fixed in 1.6.0, but maybe it's because I never sent > the patch in... Thanks a zillion. I'll try this out when out of crunch mode. I'll keep you informed Regards -- tomas ___ Bug-guile maili

Re: AG, that im living

2004-01-08 Thread Tomas
Banned CD! Government don't want me to sell it. See Now # woody incurred precipitate jar confiscate anemone cheyenne nebula signify melon nonce beloit hackney innermost send gainful admission deane susan downgrade carla babylon filamentary applicable conglomerate brownell floppy apology greet

bug#75998: [guile-lib] html->sxml does not decode entities in attributes

2025-02-01 Thread tomas
On Sat, Feb 01, 2025 at 09:10:04PM +0100, Tomas Volf wrote: > > Hello, > > I think I found a bug in the htmlprag module in guile-lib. When parsing > attributes, the values are not properly decoded: > > --8<---cut here---start-&g

bug#49638: Guile 3.0.7 can not be compiled on Fedora rawhide

2021-07-19 Thread Tomas Korbar
Hi Guys, I am trying to package guile 3.0.7 into Fedora but I encountered a problem. In sources, there is a header lib/libc-config.h and then there is preprocessor condition for presence of __attribute_maybe_unused__ macro. This macro is newly defined in the latest version of glibc which we have in

bug#49693: Bad address of FSF in module/language/elisp/compile-tree-il.scm

2021-07-22 Thread Tomas Korbar
Hi, There is a bad address specified in the license of module/language/elisp/compile-tree-il.scm file in version 3.0.7. I am attaching a patch to fix this. commit 5a888dc8cba740718d302e4e759b28bc19a9d06c Author: Tomas Korbar Date: Thu Jul 22 13:02:56 2021 +0200 Fix address of FSF diff

bug#66531: [PATCH] ftw: Fix getuid-or-false, getgid-or-false macros.

2023-10-13 Thread Tomas Volf
Both macros were missing a quote for the procedure call, causing the actual return value to be compiled into the ftw.go, instead of the procedure call. Snippet from disassembly of ftw.go does confirm that: 55(make-immediate 2 3990) ;; 997at ice-9/ftw.scm:319:46 56

bug#66531: [PATCH] ftw: Fix getuid-or-false, getgid-or-false macros.

2023-10-13 Thread Tomas Volf
it over from here, that would be great. :) > > Mike Gran Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. signature.asc Description: PGP signature

bug#66531: [PATCH] ftw: Fix getuid-or-false, getgid-or-false macros.

2023-11-29 Thread Tomas Volf
is still on the radar. Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. signature.asc Description: PGP signature

bug#68350: Segmentation fault using list-head with negative k

2024-01-09 Thread Tomas Nordin
3.0.8-2 all Documentation for Guile 3.0 ii guile-3.0-libs:amd643.0.8-2 amd64Core Guile libraries Thanks for all the work -- Tomas

bug#68350: Segmentation fault using list-head with negative k

2024-01-11 Thread Tomas Nordin
lloda writes: > I think this is another dupe of https://debbugs.gnu.org/58154. Highly possible. Like Ricardo I cannot reproduce this with a local build I made from the tip of the repo. (I saw the same segfault using list-ref with the debian 3.0.8 version FWIW.) -- Tomas

bug#66531: [PATCH] ftw: Fix getuid-or-false, getgid-or-false macros., bug#66531: [PATCH] ftw: Fix getuid-or-false, getgid-or-false macros., control message for bug #66531

2024-01-16 Thread Tomas Volf
Mike Gran writes: Hello, > I haven't forgotten about this. My linux devel box died. > > Maybe someone else can make the push, otherwise, I'll be back in business in > a couple weeks. Just a polite ping regarding this patch. Thank you and have a nice day, Tomas Volf

bug#68504: [PATCH] Add copy-on-write support to scm_copy_file.

2024-01-16 Thread Tomas Volf
On modern file-systems (BTRFS, ZFS) it is possible to copy a file using copy-on-write method. For large files it has the advantage of being much faster and saving disk space (since identical extents are not duplicated). This feature is stable and for example coreutils' `cp' does use it automatica

bug#68505: [PATCH v2] Add more detailed instructions into the HACKING file.

2024-01-16 Thread Tomas Volf
Until now, the ./meta/guile was not mentioned anywhere, and therefore it was not obvious how to run the locally compiled Guile without installing it. While modifying the file, I took the liberty to also mention a bit about compiling Guile using Guix. Finally, the header lines where cleaned up, en

bug#68506: [PATCH v3] doc: Extend documentation for (ice-9 match)

2024-01-16 Thread Tomas Volf
Extend the documentation for (ice-9 match) module with explanations of some of the patterns and also provide more examples for them. That should make it more useful for people trying to use the module for the first time just based on the documentation. * doc/ref/match.texi (Pattern Matching): Exp

bug#68507: [PATCH] doc: Fix example in list-transduce example.

2024-01-16 Thread Tomas Volf
While the `.' might be correct from a grammatical point of view (I do not know), it turns the example into invalid scheme code, which is not ideal. New users (like me) might try to copy the whole line and wonder why it does not work (like I did). So delete it. * doc/ref/srfi-modules.texi (SRFI-1

bug#68505: [PATCH v3] Add more detailed instructions into the HACKING file.

2024-01-24 Thread Tomas Volf
Until now, the ./meta/guile was not mentioned anywhere, and therefore it was not obvious how to run the locally compiled Guile without installing it. While modifying the file, I took the liberty to also mention a bit about compiling Guile using Guix. Finally, the header lines where cleaned up, en

bug#68505: [PATCH v2] Add more detailed instructions into the HACKING file.

2024-01-24 Thread Tomas Volf
WDYT? Modified as agreed on irc. I am not convinced on the -P, but I defer to your judgment on this. Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. signature.asc Description: PGP signature

bug#68504: [PATCH v2] Add copy-on-write support to scm_copy_file.

2024-01-24 Thread Tomas Volf
On modern file-systems (BTRFS, ZFS) it is possible to copy a file using copy-on-write method. For large files it has the advantage of being much faster and saving disk space (since identical extents are not duplicated). This feature is stable and for example coreutils' `cp' does use it automatica

bug#68504: [PATCH v3] Add copy-on-write support to scm_copy_file.

2024-01-24 Thread Tomas Volf
On modern file-systems (BTRFS, ZFS) it is possible to copy a file using copy-on-write method. For large files it has the advantage of being much faster and saving disk space (since identical extents are not duplicated). This feature is stable and for example coreutils' `cp' does use it automatica

bug#68504: [PATCH] Add copy-on-write support to scm_copy_file.

2024-01-24 Thread Tomas Volf
find time to actually form an opinion based on facts. Have a nice day, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. signature.asc Description: PGP signature

bug#69730: Segfault in (spawn) when passed wrong port

2024-03-11 Thread Tomas Volf
ile "/dev/null")), I would not expect invalid value in an interpreted language to cause a segfault. If the value is indeed invalid, it should throw an error. Original report: https://emacs.ch/@kakafarm/112075808549752692 Have a nice day, Tomas Volf -- There are only two hard things

bug#68504: [PATCH v3] Add copy-on-write support to scm_copy_file.

2024-03-12 Thread Tomas Volf
or 'auto case: CoW ---fail--> copy_file_range ---fail--> current copy ---fail--> FAIL For 'never case: copy_file_range ---fail--> current copy ---fail--> FAIL Is that an accurate summary? Or did you mean only as a fallback for the CoW, so only for 'aut

bug#71047: [PATCH] doc: Recommend alist-copy instead of list-copy.

2024-05-18 Thread Tomas Volf
The current recommendation of `list-copy' is not right and does not lead to preserving the original list: scheme@(guile-user)> (define x (list (cons 'a 1) (cons 'b 2))) scheme@(guile-user)> (define y (list-copy x)) scheme@(guile-user)> (assq-set! y 'b 3) $1 = ((a . 1) (b . 3))

bug#71262: [PATCH] Try to install C.UTF-8 locale before falling back to C.

2024-05-29 Thread Tomas Volf
If user does not have LANG or LC_ALL set (as does often happen in various sandboxes) glibc will just install C locale. That is fine (and permissible by POSIX), however in Guile's context it is of a mixed usefulness due to the absence of UTF-8 support. This commit changes the locale auto-installat

bug#71796: [PATCH] Do not depend on tmpnam in posix.test.

2024-06-27 Thread Tomas Volf
`tmpnam' is a deprecated procedure that can be excluded during a configure (`--disable-tmpnam'). There currently was a single test relying on it, and therefore failing is such configuration. This commit switches to mkstemp instead. * test-suite/tests/posix.test ("system*"): Use mkstemp instead o

bug#71799: [PATCH 2/2] doc: Fix implication of omitting optional arguments.

2024-06-27 Thread Tomas Volf
According to the previous wording, omitting all optional arguments led to empty interface. That however was not the case and was only a documentation bug (as confirmed by wingo on IRC). So let us fix that. * doc/ref/api-modules.texi (Using Guile Modules): Fix implication of omitting optional arg

bug#71798: [PATCH 1/2] doc: Document #:hide.

2024-06-27 Thread Tomas Volf
* doc/ref/api-modules.texi (Using Guile Modules): Document #:hide. --- doc/ref/api-modules.texi | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi index 9f2bba02d..efe739a25 100644 --- a/doc/ref/ap

bug#71800: [PATCH 0/2] Improve documentation about using modules.

2024-06-27 Thread Tomas Volf
Document the #:hide argument. Correct text for implication of leaving all optional arguments out. Tomas Volf (2): doc: Document #:hide. doc: Fix implication of omitting optional arguments. doc/ref/api-modules.texi | 29 ++--- 1 file changed, 18 insertions(+), 11

bug#71800: [PATCH 2/2] doc: Fix implication of omitting optional arguments.

2024-06-27 Thread Tomas Volf
According to the previous wording, omitting all optional arguments led to empty interface. That however was not the case and was only a documentation bug (as confirmed by wingo on IRC). So let us fix that. * doc/ref/api-modules.texi (Using Guile Modules): Fix implication of omitting optional arg

bug#71800: [PATCH 1/2] doc: Document #:hide.

2024-06-27 Thread Tomas Volf
* doc/ref/api-modules.texi (Using Guile Modules): Document #:hide. --- doc/ref/api-modules.texi | 29 ++--- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/doc/ref/api-modules.texi b/doc/ref/api-modules.texi index 9f2bba02d..efe739a25 100644 --- a/doc/ref/ap

bug#71980: [3.0.10] posix.test uses depcrecated tmpnam

2024-07-07 Thread Tomas Volf
(lambda () > -(with-error-to-port port > - (lambda () > -(system* "sh" "-c" "echo bong >&2" > + (system* "sh" "-c" "echo bong >&2&quo

bug#72153: Test name is evaluated twice

2024-07-17 Thread Tomas Volf
ASS That does not seem to be allowed by SRFI-64. I do not believe this is limited to test-assert, I managed to reproduce with test-equal as well. Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. signature.asc Description: PGP signature

bug#72154: test-error does not work

2024-07-17 Thread Tomas Volf
pected-error: + foo actual-error: + (bar) result: PASS According to feedback from mastodon it is not really implemented. That does not seem to be documented. Maybe it would be better to just not export it? Or it should throw 'not-implemented instead of just passing? Have a nice day

bug#72347: Mismatch between documentation and real implementation of list-index

2024-07-29 Thread Tomas Volf
= # Notice that by importing srfi-1 the list-index changes to the documented one. You are right that the "default" list-index indeed does not seem to be documented. It also uses `eq?' for comparisons and does not allow changing that. I hope this sheds some light on the problem. Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. signature.asc Description: PGP signature

bug#72368: srfi-64: test-begin does not set test-runner-test-name

2024-07-30 Thread Tomas Volf
x")) However it does not: ;;; ("") Have a nice day Tomas Volf

bug#72365: srfi-64: test-on-bad-end-name-simple is not allowed to raise an exception

2024-07-30 Thread Tomas Volf
4388:12 1 (_) In srfi/srfi-64/testing.scm: 375:14 0 (test-on-bad-end-name-simple _ _ _) srfi/srfi-64/testing.scm:375:14: In procedure test-on-bad-end-name-simple: test-end x does not match test-begin y Have a nice day Tomas Volf

bug#72384: srfi-64: test-end should not clear fail list

2024-07-30 Thread Tomas Volf
#t) (pk (test-result-kind)) (test-end) Leading to: ;;; (xpass) ;;; (pass) Have a nice day Tomas Volf

bug#72379: srfi-64: test-approximate does not handle exceptions

2024-07-30 Thread Tomas Volf
olfsden/tests/srfi-64/test-approximate-throw.srfi64test: 7:0 2 (_) In srfi/srfi-64/testing.scm: 677:16 1 (_ _ #f) In unknown file: 0 (real-part #f) ERROR: In procedure real-part: In procedure real-part: Wrong type argument in position 1: #f Have a nice day Tomas Volf

bug#72366: srfi-64: on-bad-end-name-function has swapped arguments

2024-07-30 Thread Tomas Volf
(test-runner-null))) (test-runner-current r) (test-runner-on-bad-end-name! r (λ (runner begin-name end-name) (pk begin-name))) (test-begin "x") (test-assert #t) (test-end "y")) But it does not: ;;; ("y") Have a nice day Tomas Volf

bug#72372: srfi-64: test-approximate evaluates test-name multiple times

2024-07-30 Thread Tomas Volf
(- expected error)) >(<= test-expr (+ expected error However the test-name is evaluated multiple times: (use-modules (srfi srfi-64)) (test-begin "x") (test-approximate (pk "t") 1 1 0) Leading to: ;;; ("t") ;;; ("t") Have a nice day Tomas Volf

bug#72375: srfi-64: test-eqv evaluates test-name multiple times

2024-07-30 Thread Tomas Volf
-name is evaluated multiple times: (use-modules (srfi srfi-64)) (test-begin "x") (test-eqv (pk "t") #t #t) Leading to: ;;; ("t") ;;; ("t") Have a nice day Tomas Volf

bug#72383: srfi-64: test-runner-reset clobbers the run list

2024-07-30 Thread Tomas Volf
ting full log to "x.log") ;;; (t-a) ;;; (t-b) Notice that in the second part, t-b is executed despite not supposed to be on the run list. Have a nice day Tomas Volf

bug#72382: srfi-64: test-with-runner requires some decl-or-expr

2024-07-30 Thread Tomas Volf
syntax-violation: Syntax error: unknown location: lambda: bad lambda in form (lambda ()) Have a nice day Tomas Volf

bug#72367: srfi-64: nested group not counted as one test

2024-07-30 Thread Tomas Volf
ever as we can see it does: ;;; (("x")) ;;; (3 1) Have a nice day Tomas Volf

bug#72371: srfi-64: test marked for skip and as expected failure has wrong result-kind in on-test-begin-function

2024-07-30 Thread Tomas Volf
))) (test-skip 1) (test-expect-fail 1) (test-assert #t) (test-end) However it does not: ;;; (skip) Have a nice day Tomas Volf

bug#72369: srfi-64: test-end fails to signal an error with null runner

2024-07-30 Thread Tomas Volf
i srfi-64)) (let ((r (test-runner-null))) (test-runner-current r) (test-begin "x") (test-end "y")) However it does not. Have a nice day Tomas Volf

bug#72378: srfi-64: top-level test-group does not work

2024-07-30 Thread Tomas Volf
-64/test-group-top-level.srfi64test: 8:0 0 (_) /home/wolf/src/guile-wolfsden/tests/srfi-64/test-group-top-level.srfi64test:8:0: In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f Have a nice day Tomas Volf

  1   2   >