From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7595 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 10:10:13 -0400 Message-ID: <20150508141013.GX17573@brightrain.aerifal.cx> References: <20150508080122.GC29035@port70.net> <20150508083641.GD29035@port70.net> <20150508124942.GV17573@brightrain.aerifal.cx> <20150508133545.GW17573@brightrain.aerifal.cx> 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 1431094228 4862 80.91.229.3 (8 May 2015 14:10:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 May 2015 14:10:28 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7608-gllmg-musl=m.gmane.org@lists.openwall.com Fri May 08 16:10:28 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 1Yqiyx-000268-FY for gllmg-musl@m.gmane.org; Fri, 08 May 2015 16:10:27 +0200 Original-Received: (qmail 9393 invoked by uid 550); 8 May 2015 14:10:26 -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 9375 invoked from network); 8 May 2015 14:10:25 -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:7595 Archived-At: On Fri, May 08, 2015 at 10:02:53PM +0800, 罗勇刚(Yonggang Luo) wrote: > Thanks for the detail explain, I know all the shortcut of 16bit > wchar_t, considerate that 4bit wchar_t is rarely used in unix world, > but 16bit wchar_t is frequently in > Windows/Qt/Java/Javascript, so I think it's better not change the > 16bit wchar_t to 32 bit, and that's would confusing those people > already use 16bit wchar_t on Windows platform, and this would affect > Unix- world, by default, on win32, wchar_t is 16 bit, this is a de > facto. That's a choice you can make in the system you're developing, but you should be aware that it makes it impossible to support full Unicode with the standard APIs and thus requires apps to either limit themselves to supporting only the BMP or using nonstandard APIs. > >From this point of view, getting wchar_t to be 32bit on win32 is > useless and cause more problems. > The main point to port musl on win32 is add posix support and utf8 > support on win32. > The wchar_t is useless for those people need cross-platform text > processing, and should using char32_t instead. That's a design > principle. Again, char32_t can't support full Unicode if wchar_t is only 16-bit. It's stuck supporting just the BMP and the upper 16 bits are always zeros. Any attempt to make char32_t support the full range would produce inconsistent and nonconforming results. :( Rich