Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0cedd530
Commit
0cedd530
authored
Aug 07, 2004
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_temp_name): Handle multibyte prefixes.
parent
abaf2e77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
src/ChangeLog
src/ChangeLog
+4
-0
src/fileio.c
src/fileio.c
+5
-3
No files found.
src/ChangeLog
View file @
0cedd530
2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
* fileio.c (make_temp_name): Handle multibyte prefixes.
2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
* keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
...
...
src/fileio.c
View file @
0cedd530
...
...
@@ -886,7 +886,7 @@ make_temp_name (prefix, base64_p)
int
base64_p
;
{
Lisp_Object
val
;
int
len
;
int
len
,
clen
;
int
pid
;
unsigned
char
*
p
,
*
data
;
char
pidbuf
[
20
];
...
...
@@ -921,8 +921,10 @@ make_temp_name (prefix, base64_p)
#endif
}
len
=
SCHARS
(
prefix
);
val
=
make_uninit_string
(
len
+
3
+
pidlen
);
len
=
SBYTES
(
prefix
);
clen
=
SCHARS
(
prefix
);
val
=
make_uninit_multibyte_string
(
clen
+
3
+
pidlen
,
len
+
3
+
pidlen
);
if
(
!
STRING_MULTIBYTE
(
prefix
))
STRING_SET_UNIBYTE
(
val
);
data
=
SDATA
(
val
);
bcopy
(
SDATA
(
prefix
),
data
,
len
);
p
=
data
+
len
;
...
...
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