From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8466 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?0KDRi9GB0Yw=?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: Message localization [Was: Re: [musl] Adjustments to roadmap] Date: Mon, 7 Sep 2015 20:51:19 +0700 Message-ID: <20150907205119.5c6812e4@r2lynx> References: <20150828024347.GA7624@brightrain.aerifal.cx> <20150830121847.4c7aa488@r2lynx> <20150830053147.GL7833@brightrain.aerifal.cx> <20150831002108.69c832d1@r2lynx> <20150830192953.GQ7833@brightrain.aerifal.cx> <20150901112655.5ec772d4@r2lynx> <20150901044730.GC7833@brightrain.aerifal.cx> <20150902092657.4fca189f@r2lynx> <20150902022856.GF17773@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: quoted-printable X-Trace: ger.gmane.org 1441633826 18074 80.91.229.3 (7 Sep 2015 13:50:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Sep 2015 13:50:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-8478-gllmg-musl=m.gmane.org@lists.openwall.com Mon Sep 07 15:50:24 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 1ZYwoQ-0007Ou-5v for gllmg-musl@m.gmane.org; Mon, 07 Sep 2015 15:50:22 +0200 Original-Received: (qmail 5830 invoked by uid 550); 7 Sep 2015 13:50:20 -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 5808 invoked from network); 7 Sep 2015 13:50:19 -0000 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_RECEIVED, NO_RELAYS autolearn=ham autolearn_force=no version=3.4.0 In-Reply-To: <20150902022856.GF17773@brightrain.aerifal.cx> X-Mailer: claws_mail Xref: news.gmane.org gmane.linux.lib.musl.general:8466 Archived-At: On Tue, 1 Sep 2015 22:28:56 -0400 Rich Felker wrote: > On Wed, Sep 02, 2015 at 09:26:57AM +0700, =D0=A0=D1=8B=D1=81=D1=8C wrote: > > On Tue, 1 Sep 2015 00:47:30 -0400 > > Rich Felker wrote: > >=20 > > > On Tue, Sep 01, 2015 at 11:26:55AM +0700, =D0=A0=D1=8B=D1=81=D1=8C wr= ote: > > > > This is what I get when running musl 1.1.11 without patches > > > > (untouched): > > > >=20 > > > > % MUSL_LOCPATH=3D/tmp/l LC_ALL=3Dru_RU ./lib/libc.so ../date > > > > Tue Sep 1 11:22:31 2015 > > > >=20 > > > > I attached strace output as well as compiled ru_RU data. > > >=20 > > > The mo file is broken; it looks like it was produced with the > > > buggy msgfmt from the sabotage repo that outputs the strings in > > > the order they were in the source, rather than sorting them. If > > > you write a perl/awk/whatever script to pre-sort them you should > > > be able to get by with this msgfmt; otherwise, you could use the > > > GNU version or try the other branch of gettext-tiny. > >=20 > > How to sort strings (or there is a script I don't know about)? > > Because I can't use gnu version, and using gettext-tiny which was > > not updated for 3 years. Or there is another version with this > > feature implemented? >=20 > It was in gettext-tiny but then reverted because making msgfmt work > exposed other limitations in it. You can check out the > second-to-newest version or the 'full' branch that still has a working > version. >=20 > Rich Many Thanks! Sorry for late feedback, now only had time to test it. It works! % MUSL_LOCPATH=3D/tmp/l LC_ALL=3Dru_RU ./date =D0=9F=D0=BD =D0=A1=D0=B5=D0=BD 7 20:47:05 2015 Meow!! I guess there is a root of lack of translation in my case: many programs use msgfmt and friends to make .mo from .po. So if I want to solve the problem, I must "update" gettext-tiny then rebuild all affected software. Am I right?