/[emacs]/emacs/src/fns.c
ViewVC logotype

Diff of /emacs/src/fns.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.332 by fx, Fri Feb 14 18:56:16 2003 UTC revision 1.333 by handa, Mon Feb 17 00:32:12 2003 UTC
# Line 1053  string_to_multibyte (string) Line 1053  string_to_multibyte (string)
1053      return string;      return string;
1054    
1055    nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string));    nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string));
1056    /* If all the chars are ASCII, they won't need any more bytes    /* If all the chars are ASCII or eight-bit-graphic, they won't need
1057       once converted.  In that case, we can return STRING itself.  */       any more bytes once converted.  */
1058    if (nbytes == SBYTES (string))    if (nbytes == SBYTES (string))
1059      return string;      return make_multibyte_string (SDATA (string), nbytes, nbytes);
1060    
1061    buf = (unsigned char *) alloca (nbytes);    buf = (unsigned char *) alloca (nbytes);
1062    bcopy (SDATA (string), buf, SBYTES (string));    bcopy (SDATA (string), buf, SBYTES (string));

Legend:
Removed from v.1.332  
changed lines
  Added in v.1.333

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26