* src/coding.c (encode_coding_utf_8): Now extern.
* src/terminal.c (terminal_glyph_code) [HAVE_STRUCT_UNIPAIR_UNICODE]:
Check for UTF-8, not just for multibyte.
}
-static bool
+bool
encode_coding_utf_8 (struct coding_system *coding)
{
bool multibytep = coding->dst_multibyte;
/* Extern declarations. */
extern Lisp_Object code_conversion_save (bool, bool);
+extern bool encode_coding_utf_8 (struct coding_system *);
extern void setup_coding_system (Lisp_Object, struct coding_system *);
extern Lisp_Object coding_charset_list (struct coding_system *);
extern Lisp_Object coding_system_charset_list (Lisp_Object);
{
#if HAVE_STRUCT_UNIPAIR_UNICODE
/* Heuristically assume that a terminal supporting glyph codes is in
- UTF-8 mode if and only if its coding system is multibyte (Bug#26396). */
- if (t->type == output_termcap && t->terminal_coding->src_multibyte)
+ UTF-8 mode if and only if its coding system is UTF-8 (Bug#26396). */
+ if (t->type == output_termcap
+ && t->terminal_coding->encoder == encode_coding_utf_8)
{
/* As a hack, recompute the table when CH is the maximum
character. */