aboutsummaryrefslogtreecommitdiff
path: root/server-msg.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-09-09 22:16:37 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-09-09 22:16:37 +0000
commit19a2c87f049155439427e40d0cc78041da4d0b99 (patch)
tree03d67440bb693b3257850a54007f9b03027d1bdc /server-msg.c
parent1e145a639be109f53381c64bd83483d32ffc8524 (diff)
downloadrtmux-19a2c87f049155439427e40d0cc78041da4d0b99.tar.gz
rtmux-19a2c87f049155439427e40d0cc78041da4d0b99.tar.bz2
rtmux-19a2c87f049155439427e40d0cc78041da4d0b99.zip
Initial UTF-8 support.
Diffstat (limited to 'server-msg.c')
-rw-r--r--server-msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/server-msg.c b/server-msg.c
index fef163d1..f7dfe2bb 100644
--- a/server-msg.c
+++ b/server-msg.c
@@ -1,4 +1,4 @@
-/* $Id: server-msg.c,v 1.49 2008-07-01 19:47:02 nicm Exp $ */
+/* $Id: server-msg.c,v 1.50 2008-09-09 22:16:37 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -187,6 +187,8 @@ server_msg_fn_identify(struct hdr *hdr, struct client *c)
data.tty[(sizeof data.tty) - 1] = '\0';
tty_init(&c->tty, data.tty, xstrdup(term));
+ if (data.flags & IDENTIFY_UTF8)
+ c->tty.flags |= TTY_UTF8;
xfree(term);
c->flags |= CLIENT_TERMINAL;