From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Message localization [Was: Re: [musl] Adjustments to roadmap]
Date: Sun, 30 Aug 2015 15:29:53 -0400 [thread overview]
Message-ID: <20150830192953.GQ7833@brightrain.aerifal.cx> (raw)
In-Reply-To: <20150831002108.69c832d1@r2lynx>
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
next prev parent reply other threads:[~2015-08-30 19:29 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 2:43 Adjustments to roadmap Rich Felker
2015-08-28 3:38 ` Khem Raj
2015-08-28 4:21 ` Rich Felker
2015-08-28 6:57 ` Вася Бойцов
2015-08-28 12:47 ` Rich Felker
2015-08-28 12:16 ` Justin Cormack
2015-08-28 7:24 ` u-wsnj
2015-08-28 11:39 ` Рысь
2015-08-28 17:18 ` Rich Felker
2015-08-30 4:21 ` Рысь
2015-08-30 4:46 ` Rich Felker
2015-08-30 5:13 ` Рысь
2015-08-30 5:30 ` Rich Felker
2015-08-30 9:00 ` Szabolcs Nagy
2015-08-30 17:09 ` Rich Felker
2015-08-30 17:45 ` u-wsnj
2015-08-30 17:13 ` Рысь
2015-08-30 17:38 ` Rich Felker
2015-08-30 5:18 ` Рысь
2015-08-30 5:31 ` Rich Felker
2015-08-30 17:21 ` Рысь
2015-08-30 19:29 ` Rich Felker [this message]
2015-09-01 4:26 ` Message localization [Was: Re: [musl] Adjustments to roadmap] Рысь
2015-09-01 4:47 ` Rich Felker
2015-09-02 2:26 ` Рысь
2015-09-02 2:28 ` Rich Felker
2015-09-07 13:51 ` Рысь
2015-09-08 15:18 ` Rich Felker
2015-08-31 7:09 ` Adjustments to roadmap Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150830192953.GQ7833@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).