Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
6d060996
Commit
6d060996
authored
Nov 02, 2007
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fexpand_file_name): Adjust multibyteness of directory
and file names.
parent
6b1c1c40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
src/fileio.c
src/fileio.c
+12
-2
No files found.
src/fileio.c
View file @
6d060996
...
...
@@ -1145,8 +1145,19 @@ See also the function `substitute-in-file-name'. */)
}
name
=
FILE_SYSTEM_CASE
(
name
);
nm
=
SDATA
(
name
);
multibyte
=
STRING_MULTIBYTE
(
name
);
if
(
multibyte
!=
STRING_MULTIBYTE
(
default_directory
))
{
if
(
multibyte
)
default_directory
=
string_to_multibyte
(
default_directory
);
else
{
name
=
string_to_multibyte
(
name
);
multibyte
=
1
;
}
}
nm
=
SDATA
(
name
);
#ifdef DOS_NT
/* We will force directory separators to be either all \ or /, so make
...
...
@@ -1455,7 +1466,6 @@ See also the function `substitute-in-file-name'. */)
&&
!
newdir
)
{
newdir
=
SDATA
(
default_directory
);
multibyte
|=
STRING_MULTIBYTE
(
default_directory
);
#ifdef DOS_NT
/* Note if special escape prefix is present, but remove for now. */
if
(
newdir
[
0
]
==
'/'
&&
newdir
[
1
]
==
':'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment