aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
authorEli Zaretskii2025-01-05 07:56:27 +0200
committerEli Zaretskii2025-01-05 07:56:27 +0200
commitcc5cd4de93d1e5ba205cbf0c370aef4559bc342b (patch)
tree71acec11c587e517a2a15da1247b284bc1dcf3a8 /src/emacs.c
parent441788e06d87c8cbd5efc9f2e00ba9072a824c55 (diff)
downloademacs-cc5cd4de93d1e5ba205cbf0c370aef4559bc342b.tar.gz
emacs-cc5cd4de93d1e5ba205cbf0c370aef4559bc342b.zip
Fix setup of coding-systems on MS-Windows
* src/emacs.c (main) [HAVE_PDUMPER] [WINDOWSNT]: Call 'w32_init_file_name_codepage' again after loading the pdumper file. * src/w32.c (w32_init_file_name_codepage) [HAVE_PDUMPER]: Reinitialize additional variables. (Bug#75207)
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index c1e0c9f3a57..896f219baab 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1419,7 +1419,18 @@ android_emacs_init (int argc, char **argv, char *dump_file)
1419 1419
1420#ifdef HAVE_PDUMPER 1420#ifdef HAVE_PDUMPER
1421 if (attempt_load_pdump) 1421 if (attempt_load_pdump)
1422 initial_emacs_executable = load_pdump (argc, argv, dump_file); 1422 {
1423 initial_emacs_executable = load_pdump (argc, argv, dump_file);
1424#ifdef WINDOWSNT
1425 /* Reinitialize the codepage for file names, needed to decode
1426 non-ASCII file names during startup. This is needed because
1427 loading the pdumper file above assigns to those variables values
1428 from the dump stage, which might be incorrect, if dumping was done
1429 on a different system. */
1430 if (dumped_with_pdumper_p ())
1431 w32_init_file_name_codepage ();
1432#endif
1433 }
1423#else 1434#else
1424 ptrdiff_t bufsize; 1435 ptrdiff_t bufsize;
1425 initial_emacs_executable = find_emacs_executable (argv[0], &bufsize); 1436 initial_emacs_executable = find_emacs_executable (argv[0], &bufsize);