Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1ede3eb6
Commit
1ede3eb6
authored
Dec 30, 2008
by
Kenichi Handa
Browse files
(copy_text): To convert a non-ASCII char to unibyte,
just get the low 8-bit of the code.
parent
545312c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/ChangeLog
src/ChangeLog
+3
-0
src/insdel.c
src/insdel.c
+2
-2
No files found.
src/ChangeLog
View file @
1ede3eb6
2008-12-30 Kenichi Handa <handa@m17n.org>
* insdel.c (copy_text): To convert a non-ASCII char to unibyte,
just get the low 8-bit of the code.
* font.c (font_intern_prop): Validate str as multibyte.
2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
...
...
src/insdel.c
View file @
1ede3eb6
...
...
@@ -655,8 +655,8 @@ copy_text (from_addr, to_addr, nbytes,
{
int
thislen
,
c
;
c
=
STRING_CHAR_AND_LENGTH
(
from_addr
,
bytes_left
,
thislen
);
if
(
!
ASCII_CHAR_P
(
c
))
c
=
multibyte_char_to_unibyte
(
c
,
tbl
)
;
if
(
!
ASCII_CHAR_P
(
c
))
c
&
=
0xFF
;
*
to_addr
++
=
c
;
from_addr
+=
thislen
;
bytes_left
-=
thislen
;
...
...
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