[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/fns.c
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/fns.c |
Date: |
Sun, 16 Feb 2003 19:32:12 -0500 |
Index: emacs/src/fns.c
diff -c emacs/src/fns.c:1.332 emacs/src/fns.c:1.333
*** emacs/src/fns.c:1.332 Fri Feb 14 13:56:16 2003
--- emacs/src/fns.c Sun Feb 16 19:32:12 2003
***************
*** 1053,1062 ****
return string;
nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string));
! /* If all the chars are ASCII, they won't need any more bytes
! once converted. In that case, we can return STRING itself. */
if (nbytes == SBYTES (string))
! return string;
buf = (unsigned char *) alloca (nbytes);
bcopy (SDATA (string), buf, SBYTES (string));
--- 1053,1062 ----
return string;
nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string));
! /* If all the chars are ASCII or eight-bit-graphic, they won't need
! any more bytes once converted. */
if (nbytes == SBYTES (string))
! return make_multibyte_string (SDATA (string), nbytes, nbytes);
buf = (unsigned char *) alloca (nbytes);
bcopy (SDATA (string), buf, SBYTES (string));
- [Emacs-diffs] Changes to emacs/src/fns.c, Richard M. Stallman, 2003/02/04
- [Emacs-diffs] Changes to emacs/src/fns.c, Francesco Potortì, 2003/02/06
- [Emacs-diffs] Changes to emacs/src/fns.c, Kenichi Handa, 2003/02/09
- [Emacs-diffs] Changes to emacs/src/fns.c, Kenichi Handa, 2003/02/10
- [Emacs-diffs] Changes to emacs/src/fns.c, Dave Love, 2003/02/14
- [Emacs-diffs] Changes to emacs/src/fns.c,
Kenichi Handa <=
- [Emacs-diffs] Changes to emacs/src/fns.c, Stefan Monnier, 2003/02/22