gnu: 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. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
parent
c258637b84
commit
6c39c131b7
|
@ -3142,6 +3142,16 @@ (define-public guile-gi
|
||||||
(ice-9 rdelim))
|
(ice-9 rdelim))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(add-after 'unpack 'patch-references-to-extension
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((effective (read-line
|
(let ((effective (read-line
|
||||||
|
|
Loading…
Reference in a new issue