diff options
Diffstat (limited to 'src/coding.h')
| -rw-r--r-- | src/coding.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/coding.h b/src/coding.h index 27bc8333c6d..ca8878f1cbb 100644 --- a/src/coding.h +++ b/src/coding.h | |||
| @@ -738,9 +738,10 @@ extern void encode_coding_object P_ ((struct coding_system *, | |||
| 738 | SBYTES (string), Qt) | 738 | SBYTES (string), Qt) |
| 739 | 739 | ||
| 740 | #define encode_coding_string(coding, string, nocopy) \ | 740 | #define encode_coding_string(coding, string, nocopy) \ |
| 741 | (encode_coding_object (coding, string, 0, 0, SCHARS (string), \ | 741 | (STRING_MULTIBYTE(string) ? \ |
| 742 | SBYTES (string), Qt), \ | 742 | (encode_coding_object (coding, string, 0, 0, SCHARS (string), \ |
| 743 | (coding)->dst_object) | 743 | SBYTES (string), Qt), \ |
| 744 | (coding)->dst_object) : (string)) | ||
| 744 | 745 | ||
| 745 | 746 | ||
| 746 | #define decode_coding_c_string(coding, src, bytes, dst_object) \ | 747 | #define decode_coding_c_string(coding, src, bytes, dst_object) \ |