* bug#49910: [website] script generating POT files broken with guile@3.0.7
@ 2021-08-06 10:53 ` pelzflorian (Florian Pelz)
2021-08-06 12:16 ` bug#49910: Fwd: " Leo Prikler
0 siblings, 1 reply; 4+ messages in thread
From: pelzflorian (Florian Pelz) @ 2021-08-06 10:53 UTC (permalink / raw)
To: 49910
Hello Guix!
In the guix-artwork.git repo, the pot file generation
(scripts/sexp-xgettext.scm as described in the file i18n-howto) in the
website is broken since guile@3.0.7. Old guile@3.0.2 works.
The issue is at the end of the procedure in the call to (read) within
token->string-symbol-or-keyw, specifically
guile -c '(with-input-from-string ",@" (lambda () (read)))'
I will investigate, but I don’t fully understand.
Regards,
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#49910: Fwd: Re: [website] script generating POT files broken with guile@3.0.7
2021-08-06 10:53 ` bug#49910: [website] script generating POT files broken with guile@3.0.7 pelzflorian (Florian Pelz)
@ 2021-08-06 12:16 ` Leo Prikler
2021-08-07 11:08 ` pelzflorian (Florian Pelz)
0 siblings, 1 reply; 4+ messages in thread
From: Leo Prikler @ 2021-08-06 12:16 UTC (permalink / raw)
To: 49910
[-- Attachment #1: Type: text/plain, Size: 33 bytes --]
Misremembered the bug ID, sorry
[-- Attachment #2: Weitergeleitete Nachricht – Re: [website] script generating POT files broken with guile@3.0.7 --]
[-- Type: message/rfc822, Size: 1646 bytes --]
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>, 49010@debbugs.gnu.org
Subject: Re: [website] script generating POT files broken with guile@3.0.7
Date: Fri, 06 Aug 2021 14:02:03 +0200
Message-ID: <bacb41f441ccb34c733ff66fcd5f73e8efdcf68e.camel@student.tugraz.at>
Hi Florian,
Am Freitag, den 06.08.2021, 12:53 +0200 schrieb pelzflorian (Florian
Pelz):
> Hello Guix!
>
> In the guix-artwork.git repo, the pot file generation
> (scripts/sexp-xgettext.scm as described in the file i18n-howto) in
> the website is broken since guile@3.0.7. Old guile@3.0.2 works.
>
> The issue is at the end of the procedure in the call to (read) within
> token->string-symbol-or-keyw, specifically
>
> guile -c '(with-input-from-string ",@" (lambda () (read)))'
>
> I will investigate, but I don’t fully understand.
Having written a Scheme-specific xgettext implementation myself, I
think the issue here is that guile@3.0.7 returns syntax objects from
(read), whereas previous guile does not.
The trick that I'm applying is to call syntax->datum on the return
value of (read). In older guile, this does nothing, whereas in newer
guile it returns the symbol, keyword, list... whatever (read) would
have returned in the old implementation.
I hope this works out for you the way it did for me.
Cheers!
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#49910: Fwd: Re: [website] script generating POT files broken with guile@3.0.7
2021-08-06 12:16 ` bug#49910: Fwd: " Leo Prikler
@ 2021-08-07 11:08 ` pelzflorian (Florian Pelz)
2021-08-18 10:21 ` pelzflorian (Florian Pelz)
0 siblings, 1 reply; 4+ messages in thread
From: pelzflorian (Florian Pelz) @ 2021-08-07 11:08 UTC (permalink / raw)
To: Leo Prikler; +Cc: 49910
On Fri, Aug 06, 2021 at 02:16:16PM +0200, Leo Prikler wrote:
> > guile -c '(with-input-from-string ",@" (lambda () (read)))'
> The trick that I'm applying is to call syntax->datum on the return
> value of (read).
This must be a different error because guile errors out without return
value, but thank you for making me read the guile NEWS file again. I
had forgotten there was a rewrite of (read).
I have pushed a workaround to guix-artwork as
f66b87373b33974751d2567f8c433ce44d07f10a and will take another look at
guile’s behavior now.
Regards,
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#49910: Fwd: Re: [website] script generating POT files broken with guile@3.0.7
2021-08-07 11:08 ` pelzflorian (Florian Pelz)
@ 2021-08-18 10:21 ` pelzflorian (Florian Pelz)
0 siblings, 0 replies; 4+ messages in thread
From: pelzflorian (Florian Pelz) @ 2021-08-18 10:21 UTC (permalink / raw)
To: 49910-done
I’m closing this issue since a workaround is in place.
The current behavior of the website’s sexp-xgettext script is wrong
(and was wrong before with guile@3.0.2) when passing --keyword=quote
or --keyword=unquote-splicing but nobody does that anyway.
The script should be adapted with further development of (ice-9 read),
for example if comment parsing gets added[0], the PEG parser in
sexp-xgettext can be thrown away.
[0] https://lists.gnu.org/archive/html/guile-user/2021-08/msg00009.html
Regards,
Florian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-18 10:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <bacb41f441ccb34c733ff66fcd5f73e8efdcf68e.camel@student.tugraz.at>
2021-08-06 10:53 ` bug#49910: [website] script generating POT files broken with guile@3.0.7 pelzflorian (Florian Pelz)
2021-08-06 12:16 ` bug#49910: Fwd: " Leo Prikler
2021-08-07 11:08 ` pelzflorian (Florian Pelz)
2021-08-18 10:21 ` pelzflorian (Florian Pelz)
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.