RECOMMEND 21.4
Ar an dara lá de mí Aibréan, scríobh Glynn Clements:
On 21.4.15, Mule, with -vanilla:
If (default-directory) contains any non-ASCII characters, M-! runs the
command with the cwd set to XEmacs' initial cwd.
Playing around with various coding-system variables doesn't seem to
affect anything.
Any ideas?
Looks like the chdir before the exec wasn’t wrapped properly. 21.5 doesn’t
have the problem, though.
src/ChangeLog addition:
2005-04-02 Aidan Kehoe <kehoea(a)parhasard.net>
* callproc.c (child_setup): Call sys_chdir instead of chdir, for
the sake of Mule safety.
XEmacs Stable source patch:
Diff command: cvs -q diff -u
Files affected: src/callproc.c
Index: src/callproc.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/Attic/callproc.c,v
retrieving revision 1.37.2.2
diff -u -u -r1.37.2.2 callproc.c
--- src/callproc.c 2002/10/31 15:07:30 1.37.2.2
+++ src/callproc.c 2005/04/02 19:27:29
@@ -676,7 +676,7 @@
should only return an error if the directory's permissions
are changed between the check and this chdir, but we should
at least check. */
- if (chdir (pwd + 4) < 0)
+ if (sys_chdir (pwd + 4) < 0)
{
/* Don't report the chdir error, or ange-ftp.el doesn't work. */
/* (FSFmacs does _exit (errno) here.) */
--
“I, for instance, am gung-ho about open source because my family is being
held hostage in Rob Malda’s basement. But who fact-checks me, or Enderle,
when we say something in public? No-one!” -- Danny O’Brien