From: Andrea Corallo Date: Thu, 18 Feb 2021 21:35:07 +0000 (+0100) Subject: * src/pdumper.c (dump_do_dump_relocation): Use emacs_fopen + ENCODE_FILE. X-Git-Tag: emacs-28.0.90~2727^2~141 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2110a3faf776c68b2dbe52da3650636aec170269;p=emacs.git * src/pdumper.c (dump_do_dump_relocation): Use emacs_fopen + ENCODE_FILE. --- diff --git a/src/pdumper.c b/src/pdumper.c index f053143a9f7..368184b9a6a 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -5280,10 +5280,10 @@ dump_do_dump_relocation (const uintptr_t dump_base, /* Check just once if this is a local build or Emacs was installed. */ if (installation_state == UNKNOWN) { - char *fname = SSDATA (concat2 (Vinvocation_directory, - XCAR (comp_u->file))); + Lisp_Object fname = + concat2 (Vinvocation_directory, XCAR (comp_u->file)); FILE *file; - if ((file = fopen (fname, "r"))) + if ((file = emacs_fopen (SSDATA (ENCODE_FILE (fname)), "r"))) { fclose (file); installation_state = INSTALLED;