X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F3FA3858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1632681854; bh=Wpf+oVWeyXpP+ieUxmaCn1X/pedxH6qsq6qhicyTIAw=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=LndXbVTrP7oo8ddPeiIBA98lK+fit7EmAApFZMu5oDukvQtw9BUbmacSn8WV0E1a/ osnpjnDtaZ9nPsKOTsITEk5CMmaIJDXJBLZDJhitYE/9P1Z17Z/+lBTYyxeTpSHlfG 0drhj/wajl8EJl7/FIXZdBSDV8g/tLIWIdkwjMyo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AB02A3857835 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=t017Wu9JjZ3K0mVUqUUHb+glJEarnmlpZExzEq4xIic=; b=mbb2u2/hAXvpwORK9MfLA9SBHKHxRGve18ItvBWoTsaSf+OIfNfFhqGlUM7Zqidi3D SE8WpAP7kMDhDQx447ZPVlTjkSIktJEgBD4QkOvXBML1X2/59ZR4vSOSsK8J7pYVfCZx wte3E8Cv7UOpLZFxAAdtCcFw5f4nsJVZerNv5LESzLLBbLvrc1/3GX7bMYN+domPikDg wb16rbg9ujHo8WUTjqzPZBhWoTMYSEvg4DsI/EILvOZ0P7WqKaINIQu6FOGGge8NKOwD FTRXMWEdFSJH1pU9urspjjcLUcNXlco36V+5HKSo5AfF2NyxwdGGTNJzov1Bb85XfVLJ HpkA== X-Gm-Message-State: AOAM533y8TomFvyS3UTp9XnXXHjJ6CPLYq250ZjxtGP/4rmhPJ75hwkV QMcmYINDxFqx78rLTOSeJka9bK2Uge0vczI96OR4kZo3 X-Google-Smtp-Source: ABdhPJy/jOxrwBhGyOqQhzMd8YBrIDrH5POKfo/huGkYVYQhQOQVEqpE13Kr61BdgvCj/jY5hn9saEpGTBv3ZH2sUwI= X-Received: by 2002:ac8:435e:: with SMTP id a30mr13103311qtn.227.1632681729256; Sun, 26 Sep 2021 11:42:09 -0700 (PDT) MIME-Version: 1.0 References: <20210925133125 DOT 8f894de4e596a71e7f24961f AT nifty DOT ne DOT jp> <78b28c3f-4604-2805-0b87-a47e0b6437ac AT maxrnd DOT com> In-Reply-To: <78b28c3f-4604-2805-0b87-a47e0b6437ac@maxrnd.com> Date: Sun, 26 Sep 2021 12:41:58 -0600 Message-ID: Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-7 To: Mark Geisert X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Doug Henderson via Cygwin Reply-To: Doug Henderson Cc: cygwin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" On Sun, 26 Sept 2021 at 03:41, Mark Geisert wrote: > > Hi Takashi, > > > > > Currently, putclip calls OpenClipboard()/CloseClipboard() four > > times. Is there any reason why closing and reopening clipboard > > several times? > > I don't know why the author coded putclip that way. Perhaps Windows required > different clipboard interfacing long ago? Or the author was being very cautious? > > > Is there any problem if you open clipboard once and close it at > > the end of function int putclip() just like the patch attached? > > > > The problem above disappears if the patch is applied. Does the code save the clipping to the clipboard with multiple formats? e.g. an ascii format, a utf-9 and a utf-16 or even an html version? I Don't recall how you had to code the clip operation so the paster can choose the best format to paste. I think mintty does this so that a text editor can paste the text from the screen, but a html editor can paste the maked-up text with bolding, underlines, etc. If you have turned on "Clipboard history" and/or "Sync across devices" in the Clipboard Settings, in at least some versions of Windows 10, there is an internet round trip to a Microsoft server that causes a delay between the copy-to-clipboard operation and when that clip is available for a paste-from-clipboard operation. If you perform a Ctrl-C immediately followed by a Ctrl-V, i.e., before the round trip completes, you will paste the previous clipboard contents instead of the expected new content. HTH Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- 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