From 5ca710d9e3284393dfbd294915e9e4251b0fe728 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 16 Nov 2008 13:28:59 +0000 Subject: Disable UTF-8 by default and add options to enable it. --- input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index c6022250..25995132 100644 --- a/input.c +++ b/input.c @@ -1,4 +1,4 @@ -/* $Id: input.c,v 1.66 2008-11-04 20:41:10 nicm Exp $ */ +/* $Id: input.c,v 1.67 2008-11-16 13:28:59 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -510,7 +510,7 @@ input_state_utf8(u_char ch, struct input_ctx *ictx) void input_handle_character(u_char ch, struct input_ctx *ictx) { - if (ch > 0x7f) { + if (ictx->w->flags & WINDOW_UTF8 && ch > 0x7f) { /* * UTF-8 sequence. * -- cgit