xsel

Program for manipulating the X clipboard
git clone https://git.sinitax.com/kfish/xsel
Log | Files | Refs | README | LICENSE | sfeed.txt

commit ef882654cb11278a352f9bf5a817f41d912211da
parent 093d621a1b1e0d6f36bb22262a325be792ecb13d
Author: conrad <conrad@9c49b5d1-7df3-0310-bce2-b7278e68f44c>
Date:   Sat, 12 Jan 2008 14:12:03 +0000

remove no-longer needed -u|--utf8 options. UTF8 support is now determined
automatically


git-svn-id: http://svn.kfish.org/xsel/trunk@200 9c49b5d1-7df3-0310-bce2-b7278e68f44c

Diffstat:
Mxsel.1x | 12------------
Mxsel.c | 5-----
2 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/xsel.1x b/xsel.1x @@ -80,18 +80,6 @@ exchange the PRIMARY and SECONDARY selections. Ignores all \fIinput\fR and \fIoutput\fR options. .PP -\fBEncoding options\fR -.TP -\fB\-u\fR, \fB\-\-utf8\fR -Request the selection in UTF-8 if possible. -This option is useful when working with selections in national -(non Latin-1) charsets. If your X server and target application -support UTF8_STRING exchange, then the selection is returned as -a UTF-8 string. If your X server doesn't support this extension, -this option has no effect. If the target application doesn't support -the UTF-8 selection target, an empty selection is returned. - -.PP \fBX options\fR .TP \fB\-d\fR \fIdisplayname\fR, \fB\-\-display\fR \fIdisplayname\fR diff --git a/xsel.c b/xsel.c @@ -114,8 +114,6 @@ usage (void) printf (" -c, --clear Clear the selection\n"); printf (" -d, --delete Request that the selection be cleared and that\n"); printf (" the application owning it delete its contents\n\n"); - printf ("Encoding options\n"); - printf (" -u, --utf8 Request selection in UTF-8 if possible\n\n"); printf ("Selection options\n"); printf (" -p, --primary Operate on the PRIMARY selection (default)\n"); printf (" -s, --secondary Operate on the SECONDARY selection\n"); @@ -1832,7 +1830,6 @@ main(int argc, char *argv[]) unsigned char * old_sel = NULL, * new_sel = NULL; char * display_name = NULL; long timeout_ms = 0L; - int need_utf8 = False; progname = argv[0]; @@ -1864,8 +1861,6 @@ main(int argc, char *argv[]) } else if (OPT("--append") || OPT("-a")) { do_append = True; dont_output = True; - } else if (OPT("--utf8") || OPT("-u")) { - need_utf8 = True; } else if (OPT("--input") || OPT("-i")) { do_input = True; dont_output = True;