FW: xwinclip i18n patch

Harold Hunt huntharo@msu.edu
Tue Jun 18 10:24:00 GMT 2002


This is Kensuke Matsuzaki's second I18N patch for xwinclip.

Let me know what you guys think of it.

I'm going to apply it within a few days, with the change that it will
determine if you are running Windows 95/98/Me or Windows NT/2000/XP before
it tries calling GetClipboardData with CF_UNICODETEXT, which only works on
NT/2000/XP.

Harold

-----Original Message-----
From: MATSUZAKI Kensuke [mailto:zakki@peppermint.jp]
Sent: Monday, June 17, 2002 1:50 PM
To: Harold Hunt
Cc: MATSUZAKI Kensuke
Subject: Re: xwinclip i18n patch


Hi.

I send new patch that use Xutf8* and CF_UNICODETEXT.

Previous patch use Xmb*, but XLocase doesn't well on
ja_JP.SJIS(Japanese encoding), so it is necessary for Japanese
to apply Mr Fujieda's I18n extension for Cygwin DLL.
#http://www.jaist.ac.jp/~fujieda/cygwin/i18n.shtml

New patch workes without Fujieda's path.

GetClipboardData(CF_UNICODETEXT) is supported only NT/2000/XP.
And CP_UTF8 for WideCharToMultiByte is not supported in 95.

I used it for dozens minutes on Windows 2000/XP.
I can cut&paste Japanesse text between Internet Explorer/Notepad
on Windows and Emacs/Mozilla/KWord on X.
It seems this patch works well.
But I have not tested other locale something like Chinese, Korean, Thai.

/**
 * MATSUZAKI Kensuke
 * mail: zakki@peppermint.jp
 **/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xwinclip-i18n-utf.patch
Type: application/octet-stream
Size: 12923 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-xfree/attachments/20020618/aa2aa570/attachment-0001.obj>


More information about the Cygwin-xfree mailing list