delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/26/05:44:07

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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
Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-7
To: cygwin AT cygwin DOT com
References: <announce DOT 20210923063710 DOT 32452-1-mark AT maxrnd DOT com>
<20210925133125 DOT 8f894de4e596a71e7f24961f AT nifty DOT ne DOT jp>
<20210925162354 DOT 27f3b28c283470805d965d11 AT nifty DOT ne DOT jp>
From: Mark Geisert <mark AT maxrnd DOT com>
Message-ID: <f98f5084-50f8-313a-f747-0b428c95fb37@maxrnd.com>
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>
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 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>
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>

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

-- 
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