From 4bed590990517dec4e92c5e0241f826004cd67e8 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Thu, 4 Jun 2009 01:06:04 +0000 Subject: [PATCH] * coding.c (get_translation_table): Check Venable_character_translation. --- src/coding.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/coding.c b/src/coding.c index 23690bc753b..aeb2b355493 100644 --- a/src/coding.c +++ b/src/coding.c @@ -6623,6 +6623,12 @@ get_translation_table (attrs, encodep, max_lookup) Lisp_Object standard, translation_table; Lisp_Object val; + if (NILP (Venable_character_translation)) + { + if (max_lookup) + *max_lookup = 0; + return Qnil; + } if (encodep) translation_table = CODING_ATTR_ENCODE_TBL (attrs), standard = Vstandard_translation_table_for_encode; -- 2.39.5