Valentin Villenave <valen...@villenave.net> writes:

> On 4/19/20, David Kastrup <d...@gnu.org> 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