bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41956: is this still current ?


From: Maxim Cournoyer
Subject: bug#41956: is this still current ?
Date: Thu, 09 Nov 2023 23:17:44 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

Hi,

Adriano Peluso <randomlooser@riseup.net> writes:

> I understand that a overhaul of the exceptions stack intervened while
> this bug was open
>
> Is this still current ?

Yes.  The affected code hasn't been touched since 2019.  To recall, the
reproducer is this:

--8<---------------cut here---------------start------------->8---
(use-modules (srfi srfi-34)
             (srfi srfi-35))
(guard (c ((message-condition? c)
           (format #t "error: ~a~%" (condition-message c))))
  (canonicalize-path "/no/such/path"))
--8<---------------cut here---------------end--------------->8---

or this:

--8<---------------cut here---------------start------------->8---
(use-modules (srfi srfi-34)
             (srfi srfi-35))
(guard (c ((message-condition? c)
           (format #t "error: ~a~%" (condition-message c))))
  ;; This is what (canonicalize-path "/do/not/exist) ends up doing:
  (throw 'system-error "canonicalize-path" "~A" '("No such file or directory")))

error: ~A
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Maxim





reply via email to

[Prev in Thread] Current Thread [Next in Thread]