unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: 49910@debbugs.gnu.org
Subject: bug#49910: Fwd: Re: [website] script generating POT files broken with guile@3.0.7
Date: Fri, 06 Aug 2021 14:16:16 +0200	[thread overview]
Message-ID: <286d211b3e7371e456de86219575580f20887955.camel@student.tugraz.at> (raw)
In-Reply-To: <20210806105344.quuluhdqx3aa4jpv@pelzflorian.localdomain>

[-- 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!

  reply	other threads:[~2021-08-06 12:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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   ` Leo Prikler [this message]
2021-08-07 11:08     ` bug#49910: Fwd: " pelzflorian (Florian Pelz)
2021-08-18 10:21       ` pelzflorian (Florian Pelz)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=286d211b3e7371e456de86219575580f20887955.camel@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=49910@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).