This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Copy and Paste with iconv
- From: Benjamin Riefenstahl <Benjamin dot Riefenstahl at epost dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Thu, 09 Oct 2003 22:25:07 +0200
- Subject: Re: Copy and Paste with iconv
- References: <u1xtmcrcz.wl@zakki@peppermint.jp> <3F85AF0D.9080301@msu.edu>
- Reply-to: cygwin-xfree at cygwin dot com
Hi,
Harold L Hunt II <huntharo@msu.edu> writes:
> Is there anyway that you can figure out the -winencoding parameter
> from Windows?
char label[20];
sprintf( label, "CP%d", (int) GetACP() );
Or something similar, you get the idea. E.g. for SHIFT_JIS you should
get CP932, which is in the iconv list of supported encodings here.
On NT/W2K/XP, you may also want to translate to Unicode and set the
clipboard with that, too.
benny