From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8422 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Message localization [Was: Re: [musl] Adjustments to roadmap] Date: Sun, 30 Aug 2015 15:29:53 -0400 Message-ID: <20150830192953.GQ7833@brightrain.aerifal.cx> References: <20150828024347.GA7624@brightrain.aerifal.cx> <20150830121847.4c7aa488@r2lynx> <20150830053147.GL7833@brightrain.aerifal.cx> <20150831002108.69c832d1@r2lynx> 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 1440963024 5949 80.91.229.3 (30 Aug 2015 19:30:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2015 19:30:24 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8434-gllmg-musl=m.gmane.org@lists.openwall.com Sun Aug 30 21:30:09 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 1ZW8Iq-00028P-7f for gllmg-musl@m.gmane.org; Sun, 30 Aug 2015 21:30:08 +0200 Original-Received: (qmail 22350 invoked by uid 550); 30 Aug 2015 19:30:06 -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 22318 invoked from network); 30 Aug 2015 19:30:05 -0000 Content-Disposition: inline In-Reply-To: <20150831002108.69c832d1@r2lynx> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:8422 Archived-At: On Mon, Aug 31, 2015 at 12:21:08AM +0700, Рысь wrote: > > > How about libc message localization, or MUSL_LOCPATH and msgfmt > > > stuff? You wanted to translate musl messages some time ago and I > > > even did sent a draft before question was abandoned. I also can't > > > get it to work and I don't quite understand the requirements for it. > > > > Yes, that would be great. Can you point me back at the message with > > the draft? I'll take a look again and see if I can get it to work. > > > > Rich > > Here it is: http://www.openwall.com/lists/musl/2015/03/17/3 (or > "[musl] libintl: stubs or working functions?" Tue, 17 Mar 2015 13:59:16 > +0700) > > I don't remember what did not work, I just get back to it again two > days ago - recovered a file attached, compiled with msgfmt, set > environment: > > MUSL_LOCPATH=/tmp LC_ALL=ru_RU ./date > > and it still prints in English. I had at the time file ru_RU in /tmp > and strace confirmed musl mmaped that file. > > I attach "date.c" test program I expected to work. > > I probably messed up with msgfmt or something I do not remember now. It works fine for me. I did: $ msgfmt -o ru_RU ru_RU.po $ gcc date.c $ LC_ALL=ru_RU MUSL_LOCPATH=. ./a.out Вск Авг 30 15:24:44 2015 Rich