From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5649 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Non-stub gettext API functions committed, ready for testing Date: Sun, 27 Jul 2014 04:46:33 -0400 Message-ID: <20140727084633.GA22355@brightrain.aerifal.cx> 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 1406450813 9672 80.91.229.3 (27 Jul 2014 08:46:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jul 2014 08:46:53 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5654-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jul 27 10:46:46 2014 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 1XBK6Q-0003ib-EI for gllmg-musl@plane.gmane.org; Sun, 27 Jul 2014 10:46:46 +0200 Original-Received: (qmail 11725 invoked by uid 550); 27 Jul 2014 08:46:45 -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 11715 invoked from network); 27 Jul 2014 08:46:45 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5649 Archived-At: As of commit 2068b4e8911a3a49cded44b4568f6c943a8c98f8, it should now be possible to support message translation at the application level using the gettext (libintl.h) functions provided by musl. Feedback from users interested in this functionality would be much appreciated! Note that some (many?) applications may attempt to use their own included gettext rather than the one in libc, so before testing it would be helpful to check this and make sure the functions in musl are actually getting called. I'm not familiar with what types of checks typical autoconf scripts do to choose whether to use libc gettext or their own, so information on this topic would also be helpful, especially if there's anything we could do to get apps to choose the one in musl rather than pulling in their own bloated copy of GNU gettext. As mentioned in the commit message, some functionality is still missing. For the plurals stuff, I can't find the information on how you actually get the plural rules out of the .mo file and apply them. For the LANGUAGE variable, it's just a matter of adding some loop-and-retry logic. Rich