From 19a2c87f049155439427e40d0cc78041da4d0b99 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 9 Sep 2008 22:16:37 +0000 Subject: Initial UTF-8 support. --- tmux.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tmux.c') diff --git a/tmux.c b/tmux.c index 605f6854..fb7e56f7 100644 --- a/tmux.c +++ b/tmux.c @@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.74 2008-08-28 17:45:27 nicm Exp $ */ +/* $Id: tmux.c,v 1.75 2008-09-09 22:16:37 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -175,10 +175,11 @@ main(int argc, char **argv) struct passwd *pw; char *path, *cause, *home; char rpath[MAXPATHLEN]; - int n, opt; + int n, opt, flags; + flags = 0; path = NULL; - while ((opt = getopt(argc, argv, "f:qS:Vv")) != EOF) { + while ((opt = getopt(argc, argv, "f:qS:uVv")) != EOF) { switch (opt) { case 'f': cfg_file = xstrdup(optarg); @@ -189,6 +190,9 @@ main(int argc, char **argv) case 'q': be_quiet = 1; break; + case 'u': + flags |= IDENTIFY_UTF8; + break; case 'v': debug_level++; break; @@ -286,7 +290,8 @@ main(int argc, char **argv) memset(&cctx, 0, sizeof cctx); client_fill_session(&data); - if (client_init(rpath, &cctx, cmd->entry->flags & CMD_STARTSERVER) != 0) + if (client_init( + rpath, &cctx, cmd->entry->flags & CMD_STARTSERVER, flags) != 0) exit(1); b = buffer_create(BUFSIZ); cmd_send(cmd, b); -- cgit