From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m0.truegem.net (m0.truegem.net [69.55.228.47]) by sourceware.org (Postfix) with ESMTPS id C41EA3858403 for ; Sun, 26 Sep 2021 09:43:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C41EA3858403 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=maxrnd.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=maxrnd.com Received: (from daemon@localhost) by m0.truegem.net (8.12.11/8.12.11) id 18Q9hQh5087095 for ; Sun, 26 Sep 2021 02:43:26 -0700 (PDT) (envelope-from mark@maxrnd.com) Received: from 162-235-43-67.lightspeed.irvnca.sbcglobal.net(162.235.43.67), claiming to be "[192.168.1.100]" via SMTP by m0.truegem.net, id smtpdebdDtZ; Sun Sep 26 02:43:20 2021 Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-7 To: cygwin@cygwin.com References: <20210925133125.8f894de4e596a71e7f24961f@nifty.ne.jp> <20210925162354.27f3b28c283470805d965d11@nifty.ne.jp> From: Mark Geisert Message-ID: Date: Sun, 26 Sep 2021 02:43:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: <20210925162354.27f3b28c283470805d965d11@nifty.ne.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A, SPF_HELO_NONE, SPF_NONE, 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Sep 2021 09:43:28 -0000 Hi Takashi, Takashi Yano via Cygwin wrote: > On Sat, 25 Sep 2021 13:31:25 +0900 > Takashi Yano wrote: [...] > I noticed that putclip/getclip have another problem. > > These utils assume the charset is always UTF-8, however, cygwin > supports locales which charset is not UTF-8 (such as CP932, EUC-JP, > CP850, CP1251, etc.). > > Therefore, what abount using mbstowcs/wcstombs rather than > MultiByteToWideChar/WideCharToMultiByte like the patch attached? Oh, that's how /dev/clipboard does the translations. I like that very much and will apply your patch as part of an upcoming -8 release of cygutils. ..mark