GNU bug report logs - #60528
uri->string swallows mandatory slashes

Previous Next

Package: guile;

Reported by: Liliana Marie Prikler <liliana.prikler <at> gmail.com>

Date: Tue, 3 Jan 2023 20:01:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: 60528 <at> debbugs.gnu.org
Subject: bug#60528: uri->string swallows mandatory slashes
Date: Tue, 03 Jan 2023 21:00:48 +0100
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:///home") 
$1 = #<<uri> scheme: file userinfo: #f host: #f port: #f path: "/home"
query: #f fragment: #f>
scheme@(guile-user)> (uri->string $1)
$2 = "file:/home"
scheme@(guile-user)> (uri->string (build-uri 'file #:host "" #:path
"/home")) 
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key `uri-error' with args `("Expected valid host: ~s" (""))'.

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

Cheers




This bug report was last modified 2 years and 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.