From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7591 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: There is no tests for musl, Date: Fri, 8 May 2015 08:49:42 -0400 Message-ID: <20150508124942.GV17573@brightrain.aerifal.cx> References: <20150508080122.GC29035@port70.net> <20150508083641.GD29035@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1431089406 19114 80.91.229.3 (8 May 2015 12:50:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 May 2015 12:50:06 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7604-gllmg-musl=m.gmane.org@lists.openwall.com Fri May 08 14:50:01 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Yqhj4-0007tp-Cj for gllmg-musl@m.gmane.org; Fri, 08 May 2015 14:49:58 +0200 Original-Received: (qmail 30126 invoked by uid 550); 8 May 2015 12:49:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30108 invoked from network); 8 May 2015 12:49:55 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7591 Archived-At: On Fri, May 08, 2015 at 04:52:28PM +0800, 罗勇刚(Yonggang Luo) wrote: > That's looks good, except the wchar_t part. > I am not so sure that's was a good idea, cause all Windows API wchar_t > are UTF16... It's necessary to support all of Unicode and not just the BMP. On midipix you still have all the raw Windows API functions that need UTF-16 "WCHAR" arrays as input, so you can convert manually to WCHAR (which happens to also match the standard C type char16_t) and call them. But there's also a wrapper layer that lets you pass UTF-8 strings to WinAPI wrappers, so you never have to deal with wchar_t or WCHAR at all. I don't know all the details but you could ask on #midipix. Rich