From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7392 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: libintl: stubs or working functions Date: Thu, 16 Apr 2015 13:33:45 -0400 Message-ID: <20150416173345.GV6817@brightrain.aerifal.cx> References: <20150415191815.GA5045@euler> <20150416003506.GT6817@brightrain.aerifal.cx> <20150416171505.GA1264@euler> 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 1429205647 18145 80.91.229.3 (16 Apr 2015 17:34:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Apr 2015 17:34:07 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7405-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 16 19:34: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 1Yinfs-0004OZ-Uh for gllmg-musl@m.gmane.org; Thu, 16 Apr 2015 19:34:01 +0200 Original-Received: (qmail 29800 invoked by uid 550); 16 Apr 2015 17:33:59 -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 29782 invoked from network); 16 Apr 2015 17:33:58 -0000 Content-Disposition: inline In-Reply-To: <20150416171505.GA1264@euler> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7392 Archived-At: On Thu, Apr 16, 2015 at 07:15:51PM +0200, Felix Janda wrote: > As I understand applications need to pass 'need-formatstring-macros' to > the AM_GNU_GETTEXT macro to request this functionality. But with debian > code search I couldn't find any program doing that... OK. AFAIK it's only GNU software like coreutils using this functionality. > The macro distinguishes three gettext apis. gt_api_version is 1 for the > basic version. For the ngettext functions gt_api_version>=2 is necessary > and for these "SYSDEP strings" gt_api_version>=3 is necessary. > > As I understand musl has gt_api_version=2. Is that right? Based on your understanding of the versions, yes, that sounds right. > To test for the api version AM_GNU_GETTEXT checks in all cases for > bindtextdomain, gettext, _nl_msg_cat_cntr and _nl_domain_bindings. For > gt_api_version>=2 it checks for ngettext and for gt_api_version>=3 it > does something with __GNU_GETTEXT_SUPPORTED_REVISION we won't need to > care about. > > So for musl the test gives obviously the wrong result. > > I guess that we don't want to export symbols _nl_*. > > What I would now like to ask upstream is to put the _nl_* stuff behind > an #ifdef __GLIBC__ ... I think we should ask why they're doing it. It sounds to me like they should just be checking for the APIs they want to use. Rich