aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorChong Yidong2009-06-04 01:06:04 +0000
committerChong Yidong2009-06-04 01:06:04 +0000
commit4bed590990517dec4e92c5e0241f826004cd67e8 (patch)
tree2883583697eaca6bd1b8d42b52d93147adbcbe54 /src/coding.c
parentfdb55376957997218000639c9eed2b061b10ee05 (diff)
downloademacs-4bed590990517dec4e92c5e0241f826004cd67e8.tar.gz
emacs-4bed590990517dec4e92c5e0241f826004cd67e8.zip
* coding.c (get_translation_table): Check Venable_character_translation.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 6 insertions, 0 deletions
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)
6623 Lisp_Object standard, translation_table; 6623 Lisp_Object standard, translation_table;
6624 Lisp_Object val; 6624 Lisp_Object val;
6625 6625
6626 if (NILP (Venable_character_translation))
6627 {
6628 if (max_lookup)
6629 *max_lookup = 0;
6630 return Qnil;
6631 }
6626 if (encodep) 6632 if (encodep)
6627 translation_table = CODING_ATTR_ENCODE_TBL (attrs), 6633 translation_table = CODING_ATTR_ENCODE_TBL (attrs),
6628 standard = Vstandard_translation_table_for_encode; 6634 standard = Vstandard_translation_table_for_encode;