This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Copy and Paste with iconv


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]