bug-guix
[Top][All Lists]
Advanced

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

bug#60834: configuration->documentation generates garbage @-command on f


From: Bruno Victal
Subject: bug#60834: configuration->documentation generates garbage @-command on fields beginning with numeric characters
Date: Thu, 6 Apr 2023 14:20:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1

This seems to be an issue involving how 'object->string' works:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (object->string '1-foo)
$1 = "#{1-foo}#"
scheme@(guile-user)> (object->string '-foo)
$2 = "-foo"
scheme@(guile-user)> (object->string 'foo-1-bar)
$3 = "foo-1-bar"
scheme@(guile-user)> (object->string 'foo-1)
$4 = "foo-1"
scheme@(guile-user)>
--8<---------------cut here---------------end--------------->8---


Grepping guile source, we see that 'format' also uses 'object->string' for the 
~a format, which prints:

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> (format #t "Expected: ~a, ~a; Unexpected: ~a;~%" 'foo 
'-foo '1-foo)
Expected: foo, -foo; Unexpected: #{1-foo}#;
$5 = #t
scheme@(guile-user)>
--8<---------------cut here---------------end--------------->8---





reply via email to

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