(code_convert_string): Add record_unwind_protect to
authorKenichi Handa <handa@m17n.org>
Mon, 18 Oct 1999 01:36:35 +0000 (01:36 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 18 Oct 1999 01:36:35 +0000 (01:36 +0000)
commitb843d1aed4ea675ca01d63df16958e206a911d19
treeffffa3f178514d22ed5c43fd5095f1eb11e8660c
parent600f9d03904b78ced2cdbc4311668f354147e0a4
(code_convert_string): Add record_unwind_protect to
assure setting inhibit_pre_post_conversion back to zero.  Take
care of the multibyteness of the working buffer.

(inhibit_pre_post_conversion): New variable.
(setup_coding_system): If inhibit_pre_post_conversion is nonzero,
ignore post-read-conversion and pre-write-conversion property of
the coding system.
(code_convert_region_unwind): New function.
(code_convert_region): Set inhibit_pre_post_conversion to 1 while
running pre-write-conversion and post-read-conversion.
(code_convert_string): Likewise.
src/ChangeLog
src/coding.c