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
495a6df3
Commit
495a6df3
authored
Nov 20, 2000
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(make_string): Fix previous change. Be sure to make
unibyte string correctly.
parent
030de92f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/ChangeLog
src/ChangeLog
+5
-0
src/alloc.c
src/alloc.c
+3
-3
No files found.
src/ChangeLog
View file @
495a6df3
2000-11-20 Kenichi Handa <handa@etl.go.jp>
* alloc.c (make_string): Fix previous change. Be sure to make
unibyte string correctly.
2000-11-19 Gerd Moellmann <gerd@gnu.org>
* window.c (Fwindow_list): Change parameter list to be XEmacs
...
...
src/alloc.c
View file @
495a6df3
...
...
@@ -1701,12 +1701,12 @@ make_string (contents, nbytes)
int
nchars
,
multibyte_nbytes
;
parse_str_as_multibyte
(
contents
,
nbytes
,
&
nchars
,
&
multibyte_nbytes
);
val
=
make_uninit_multibyte_string
(
nchars
,
nbytes
);
bcopy
(
contents
,
XSTRING
(
val
)
->
data
,
nbytes
);
if
(
nbytes
==
nchars
||
nbytes
!=
multibyte_nbytes
)
/* CONTENTS contains no multibyte sequences or contains an invalid
multibyte sequence. We must make unibyte string. */
SET_STRING_BYTES
(
XSTRING
(
val
),
-
1
);
val
=
make_unibyte_string
(
contents
,
nbytes
);
else
val
=
make_multibyte_string
(
contents
,
nchars
,
nbytes
);
return
val
;
}
...
...
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