diff options
| author | Kenichi Handa | 1998-05-18 00:59:38 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-05-18 00:59:38 +0000 |
| commit | 44893c8f3a0286aa06f0c4f7a5e9036da60d1683 (patch) | |
| tree | c14ab04809be080cbd28d857ddcb4c7e8ba2c034 /src | |
| parent | 06274af57fcff96b71346897d2e14f3412798422 (diff) | |
| download | emacs-44893c8f3a0286aa06f0c4f7a5e9036da60d1683.tar.gz emacs-44893c8f3a0286aa06f0c4f7a5e9036da60d1683.zip | |
(concat): Fix bug in concatinating a list of multibyte and
unibyte characters.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -731,8 +731,8 @@ concat (nargs, args, target_type, last_special) | |||
| 731 | CHECK_NUMBER (elt, 0); | 731 | CHECK_NUMBER (elt, 0); |
| 732 | if (SINGLE_BYTE_CHAR_P (XINT (elt))) | 732 | if (SINGLE_BYTE_CHAR_P (XINT (elt))) |
| 733 | { | 733 | { |
| 734 | XSTRING (val)->data[toindex++] = XINT (elt); | 734 | XSTRING (val)->data[toindex_byte++] = XINT (elt); |
| 735 | toindex_byte++; | 735 | toindex++; |
| 736 | } | 736 | } |
| 737 | else | 737 | else |
| 738 | /* If we have any multibyte characters, | 738 | /* If we have any multibyte characters, |