Copy and Paste with iconv
Benjamin Riefenstahl
Benjamin.Riefenstahl@epost.de
Thu Oct 9 20:26:00 GMT 2003
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
More information about the Cygwin-xfree
mailing list