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
603a8d59
Commit
603a8d59
authored
Feb 09, 2001
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fchar_to_string): If CHARACTER is less than 256,
return a unibyte string.
parent
5729c92f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/editfns.c
src/editfns.c
+3
-1
No files found.
src/editfns.c
View file @
603a8d59
...
...
@@ -167,7 +167,9 @@ DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0,
CHECK_NUMBER
(
character
,
0
);
len
=
CHAR_STRING
(
XFASTINT
(
character
),
str
);
len
=
(
SINGLE_BYTE_CHAR_P
(
XFASTINT
(
character
))
?
(
*
str
=
(
unsigned
char
)(
XFASTINT
(
character
)),
1
)
:
char_to_string
(
XFASTINT
(
character
),
str
));
return
make_string_from_bytes
(
str
,
1
,
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