diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-09 22:16:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-09-09 22:16:37 +0000 |
commit | 19a2c87f049155439427e40d0cc78041da4d0b99 (patch) | |
tree | 03d67440bb693b3257850a54007f9b03027d1bdc /tmux.c | |
parent | 1e145a639be109f53381c64bd83483d32ffc8524 (diff) |
Initial UTF-8 support.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 <nicm@users.sourceforge.net> @@ -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); |