From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3946 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: SUN_LEN Date: Wed, 21 Aug 2013 13:25:36 -0400 Message-ID: <20130821172536.GB20515@brightrain.aerifal.cx> References: <5214B4CF.4090202@barfooze.de> <20130821144552.GD30088@port70.net> <20130821162339.GY20515@brightrain.aerifal.cx> <20130821163428.GE30088@port70.net> <20130821163645.GZ20515@brightrain.aerifal.cx> <20130821164220.GA20515@brightrain.aerifal.cx> <20130821170036.GF30088@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1377105951 16012 80.91.229.3 (21 Aug 2013 17:25:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 17:25:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3950-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 21 19:25:53 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VCCAH-0001XW-PO for gllmg-musl@plane.gmane.org; Wed, 21 Aug 2013 19:25:49 +0200 Original-Received: (qmail 31956 invoked by uid 550); 21 Aug 2013 17:25:49 -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 31948 invoked from network); 21 Aug 2013 17:25:48 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3946 Archived-At: On Thu, Aug 22, 2013 at 02:11:52AM +0900, Yu Kobayashi wrote: > > The fact that gmail seems to be using ISO-2022-JP by default > > Sorry, I switched to the English name. > I think UTF-8 or US-ASCII is used. > > > This is insufficient, since sys/un.h does not expose strlen. > > Why is it a bad thing to include ? > Worry about cyclic dependency? Well it puts a lot more stuff into the namespace and has a much larger parsing cost (for the 99% of applications using sys/un.h that don't need SUN_LEN). I think just using strlen and adding the __NEED_size_t and prototype might be the least ugly though, now... after all none of the options are clean. Rich