diff options
| author | Jason Rumney | 2004-02-03 23:44:47 +0000 |
|---|---|---|
| committer | Jason Rumney | 2004-02-03 23:44:47 +0000 |
| commit | 2883d84228b07da8276569258cee4eafebc10c35 (patch) | |
| tree | 4359188c65e9d3bdc0fb0311af375fd6d7ad3de7 /src/w32select.c | |
| parent | 95e224b7e32edf56ad482832775eb814e2e7a36c (diff) | |
| download | emacs-2883d84228b07da8276569258cee4eafebc10c35.tar.gz emacs-2883d84228b07da8276569258cee4eafebc10c35.zip | |
* w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
* w32fns.c (x_to_w32_font): Likewise.
Diffstat (limited to 'src/w32select.c')
| -rw-r--r-- | src/w32select.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/w32select.c b/src/w32select.c index 6533f4b660d..940cce35772 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -212,6 +212,11 @@ DEFUN ("w32-set-clipboard-data", Fw32_set_clipboard_data, | |||
| 212 | } | 212 | } |
| 213 | coding.src_multibyte = 1; | 213 | coding.src_multibyte = 1; |
| 214 | coding.dst_multibyte = 0; | 214 | coding.dst_multibyte = 0; |
| 215 | /* Need to set COMPOSITION_DISABLED, otherwise Emacs crashes in | ||
| 216 | encode_coding_iso2022 trying to dereference a null pointer. */ | ||
| 217 | coding.composing = COMPOSITION_DISABLED; | ||
| 218 | if (coding.type == coding_type_iso2022) | ||
| 219 | coding.flags |= CODING_FLAG_ISO_SAFE; | ||
| 215 | Vnext_selection_coding_system = Qnil; | 220 | Vnext_selection_coding_system = Qnil; |
| 216 | coding.mode |= CODING_MODE_LAST_BLOCK; | 221 | coding.mode |= CODING_MODE_LAST_BLOCK; |
| 217 | bufsize = encoding_buffer_size (&coding, nbytes); | 222 | bufsize = encoding_buffer_size (&coding, nbytes); |