Mercurial > emacs
comparison src/coding.c @ 35531:36de5bf9969c
(ccl_coding_driver): Setup ccl->suppress_error.
(Fset_terminal_coding_system_internal): Set the member
suppress_error to 1.
(Fset_safe_terminal_coding_system_internal): Likewise.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Wed, 24 Jan 2001 23:30:34 +0000 |
| parents | e3e1ff3616fa |
| children | 7e767148cfdc |
comparison
equal
deleted
inserted
replaced
| 35530:cb627d09f8c3 | 35531:36de5bf9969c |
|---|---|
| 4425 { | 4425 { |
| 4426 struct ccl_program *ccl | 4426 struct ccl_program *ccl |
| 4427 = encodep ? &coding->spec.ccl.encoder : &coding->spec.ccl.decoder; | 4427 = encodep ? &coding->spec.ccl.encoder : &coding->spec.ccl.decoder; |
| 4428 unsigned char *dst = destination; | 4428 unsigned char *dst = destination; |
| 4429 | 4429 |
| 4430 ccl->suppress_error = coding->suppress_error; | |
| 4430 ccl->last_block = coding->mode & CODING_MODE_LAST_BLOCK; | 4431 ccl->last_block = coding->mode & CODING_MODE_LAST_BLOCK; |
| 4431 if (encodep) | 4432 if (encodep) |
| 4432 { | 4433 { |
| 4433 /* On encoding, EOL format is converted within ccl_driver. For | 4434 /* On encoding, EOL format is converted within ccl_driver. For |
| 4434 that, setup proper information in the structure CCL. */ | 4435 that, setup proper information in the structure CCL. */ |
| 6649 setup_coding_system (Fcheck_coding_system (coding_system), &terminal_coding); | 6650 setup_coding_system (Fcheck_coding_system (coding_system), &terminal_coding); |
| 6650 /* We had better not send unsafe characters to terminal. */ | 6651 /* We had better not send unsafe characters to terminal. */ |
| 6651 terminal_coding.flags |= CODING_FLAG_ISO_SAFE; | 6652 terminal_coding.flags |= CODING_FLAG_ISO_SAFE; |
| 6652 /* Characer composition should be disabled. */ | 6653 /* Characer composition should be disabled. */ |
| 6653 terminal_coding.composing = COMPOSITION_DISABLED; | 6654 terminal_coding.composing = COMPOSITION_DISABLED; |
| 6655 /* Error notification should be suppressed. */ | |
| 6656 terminal_coding.suppress_error = 1; | |
| 6654 terminal_coding.src_multibyte = 1; | 6657 terminal_coding.src_multibyte = 1; |
| 6655 terminal_coding.dst_multibyte = 0; | 6658 terminal_coding.dst_multibyte = 0; |
| 6656 return Qnil; | 6659 return Qnil; |
| 6657 } | 6660 } |
| 6658 | 6661 |
| 6665 CHECK_SYMBOL (coding_system, 0); | 6668 CHECK_SYMBOL (coding_system, 0); |
| 6666 setup_coding_system (Fcheck_coding_system (coding_system), | 6669 setup_coding_system (Fcheck_coding_system (coding_system), |
| 6667 &safe_terminal_coding); | 6670 &safe_terminal_coding); |
| 6668 /* Characer composition should be disabled. */ | 6671 /* Characer composition should be disabled. */ |
| 6669 safe_terminal_coding.composing = COMPOSITION_DISABLED; | 6672 safe_terminal_coding.composing = COMPOSITION_DISABLED; |
| 6673 /* Error notification should be suppressed. */ | |
| 6674 terminal_coding.suppress_error = 1; | |
| 6670 safe_terminal_coding.src_multibyte = 1; | 6675 safe_terminal_coding.src_multibyte = 1; |
| 6671 safe_terminal_coding.dst_multibyte = 0; | 6676 safe_terminal_coding.dst_multibyte = 0; |
| 6672 return Qnil; | 6677 return Qnil; |
| 6673 } | 6678 } |
| 6674 | 6679 |
