delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/05/07:43:18

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2FE7385415F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1657021397;
bh=JM0tgTHaglg9k5by/sOR4TDmmdXYU07fuw7U3+JWjNw=;
h=Date:From:To:Subject:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
Reply-To:From;
b=gvaHPt+bu81ukUMyY83xBqJTWlHTwm0gM93nrDHiPiatIVBd9gIQQHmyvF+Z9OP0D
S75/YxAk15QJNWmaWSSWYIwl3RxywjkgkR/wb0jt6yx8j9I7TqRD+Iw06msG+7XrV3
8xBj0Yi5VAdxVIuoM5eSwCwEmD6m9i/+aADIExsQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7BA5B385828E
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com
Date: Tue, 5 Jul 2022 13:42:45 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /dev/clipboard sometimes fails to set CF_UNICODETEXT data.
Message-ID: <YsQjtUwkJXJBj7xV@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20220702122056 DOT 39a6c5e49c637d028694412e AT nifty DOT ne DOT jp>
<62975088-7bc3-7dde-d08c-3972126304f1 AT maxrnd DOT com>
<20220705174058 DOT b4d8cb5ce54f7fac8700aaa9 AT nifty DOT ne DOT jp>
MIME-Version: 1.0
In-Reply-To: <20220705174058.b4d8cb5ce54f7fac8700aaa9@nifty.ne.jp>
X-Provags-ID: V03:K1:bxmnplJ6ZEj8ojeRtN8Z/e+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Status: No, score=-94.9 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2, SPF_FAIL, SPF_HELO_NONE, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Jul  5 17:40, Takashi Yano wrote:
> On Tue, 5 Jul 2022 00:42:50 -0700
> Mark Geisert wrote:
> > Takashi Yano wrote:
> > > I also found the patch attached solves the issue.
> > > 
> > > I would appreciate any suggestion.
> > 
> > Would be neet if this patch wasn't needed, but, oh well.  My only comment on the 
> > patch would be to possibly call the new wrapper function MyOpenClipboard, or 
> > CygOpenClipboard, to help keep the name paired with CloseClipboard.
> 
> Thanks for the comment. IIUC, the camel case name should be
> used only for Win32 APIs related. However, this is the wrapper
> for Win32 API. So, it might be acceptable. In other places,
> some wrapper functions are named as camel case.
> 
> Corinna, WDYT?

What about just adding a static inline wrapper called close_clipboard
for symmetry?


Corinna

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019