lilypond-devel
[Top][All Lists]
Advanced

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

Re: Patchy email


From: David Kastrup
Subject: Re: Patchy email
Date: Sun, 19 Apr 2020 19:55:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Valentin Villenave <address@hidden> writes:

> On 4/19/20, David Kastrup <address@hidden> wrote:
>> ERROR: In procedure mkstemp!:
>> string is read-only: "kaka-XXXXXX"
>
> Could  the following help?
>
> diff --git a/input/regression/font-name-add-files.ly
> b/input/regression/font-name-add-files.ly
> index 33f73f0c68..264e2b6532 100644
> --- a/input/regression/font-name-add-files.ly
> +++ b/input/regression/font-name-add-files.ly
> @@ -22,7 +22,7 @@ rather than a letter glyph."
>  %% but since there’s no mkdtemp in Guile, we need to fiddle with
>  %% filename strings anyway:
>
> -dummyname = #(port-filename (mkstemp! "dummyfont-XXXXXX"))
> +dummyname = #(string-copy (port-filename (mkstemp! "dummyfont-XXXXXX")))
>
>  dummyfontfile = #(string-append dummyname "-font.otf")
>  dummyfontdir = #(string-append dummyname "-dir")

No, that's the wrong way round.  You need (mkstemp! (string-copy "...
because mkstemp! overrides the string.

-- 
David Kastrup



reply via email to

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