all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vivien Kraus via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 51447@debbugs.gnu.org
Subject: bug#51447: More explanations for the fix
Date: Wed, 03 Nov 2021 12:11:54 +0100	[thread overview]
Message-ID: <875yt9wl1h.fsf@planete-kraus.eu> (raw)
In-Reply-To: <53663564cd4371ba520861d7480a8e2bc037243b.camel@planete-kraus.eu>

[-- Attachment #1: Type: text/plain, Size: 97 bytes --]


I was told that this issues gives headaches, so I added a short comment
explaining it.

Vivien


[-- Attachment #2: 0001-guile-gi-fix-a-source-code-encoding-error.patch --]
[-- Type: text/x-patch, Size: 1565 bytes --]

From 93224afab672465f3e8e1a6be00def0d5507bb76 Mon Sep 17 00:00:00 2001
From: Vivien Kraus <vivien@planete-kraus.eu>
Date: Tue, 2 Nov 2021 18:19:03 +0100
Subject: [PATCH] guile-gi: fix a source code encoding error

* gnu/packages/guile-xyz.scm (guile-gi) [phases]: remove the default dotted
circle from the combining character that is tested in test/string.scm.
---
 gnu/packages/guile-xyz.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 3c93779209..1ef872ffe1 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -3145,6 +3145,16 @@ (define-public guile-gi
                   (ice-9 rdelim))
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'remove-dotted-circle-from-combining-character
+           ;; The test/string.scm files contain ◌̀, which is a dotted circle
+           ;; (U+25cc) followed by an upper combining character (U+0300). The
+           ;; old guile 3.0.2 reader incorrectly ignores the dotted circle,
+           ;; and parses it as the combining character alone, but the new
+           ;; guile reader does not.
+           ;; See https://github.com/spk121/guile-gi/issues/112
+           (lambda* _
+             (substitute* "test/string.scm"
+               (("#\\\\◌̀") "#\\x0300"))))
          (add-after 'unpack 'patch-references-to-extension
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((effective (read-line
-- 
2.33.1


  parent reply	other threads:[~2021-11-03 11:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-27 20:56 bug#51447: Guile-gi fails a few tests on core-updates-frozen Vivien Kraus via Bug reports for GNU Guix
     [not found] ` <handler.51447.B.163536819116399.ack@debbugs.gnu.org>
2021-11-02 17:24   ` bug#51447: [PATCH] Re: bug#51447: guile-gi source code has a placeholder for a combining character Vivien Kraus via Bug reports for GNU Guix
2021-11-02 17:31     ` Vivien Kraus via Bug reports for GNU Guix
2021-11-02 17:28   ` bug#51447: there’s no other test failing than string.scm Vivien Kraus via Bug reports for GNU Guix
2021-11-03 11:11 ` Vivien Kraus via Bug reports for GNU Guix [this message]
2021-11-03 11:58   ` bug#51447: More explanations for the fix Tobias Geerinckx-Rice via Bug reports for GNU Guix

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

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

  git send-email \
    --in-reply-to=875yt9wl1h.fsf@planete-kraus.eu \
    --to=bug-guix@gnu.org \
    --cc=51447@debbugs.gnu.org \
    --cc=vivien@planete-kraus.eu \
    /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 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.