]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/pdumper.c (dump_do_dump_relocation): Use emacs_fopen + ENCODE_FILE.
authorAndrea Corallo <akrl@sdf.org>
Thu, 18 Feb 2021 21:35:07 +0000 (22:35 +0100)
committerAndrea Corallo <akrl@sdf.org>
Thu, 18 Feb 2021 21:50:55 +0000 (22:50 +0100)
src/pdumper.c

index f053143a9f7cf9d5ab7f7f916334662bd35dc46c..368184b9a6a855d3d29aa1616ccef6e9f5cd8ffa 100644 (file)
@@ -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;