From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: Status towards next release (1.1.4)
Date: Sun, 13 Jul 2014 23:48:26 -0400 [thread overview]
Message-ID: <20140714034826.GP179@brightrain.aerifal.cx> (raw)
In-Reply-To: <53C24766.2040803@langurwallah.org>
On Sun, Jul 13, 2014 at 02:16:30PM +0530, Weldon Goree wrote:
> Just because I figure someone should propose the most brute possible
> strategy: what about storing the .mo data in the library itself? Port
> the built-ins to the format, and you have a single code path for locale
> access, and it doesn't involve persistent storage. If I'm understanding
> your idea right and you're talking about the equivalent of
> SYS_LC_MESSAGES and parts of LC_TIME and LC_COLLATE, this isn't nearly
> as bloated as it sounds at first (particularly if one is putting, say, 4
> locales in a given build rather than 446).
>
> Now, obviously maintainers wouldn't like the choice of either 1 bloated
> binary or 446 non-bloated binaries (or God forbid the Cartesian product
> of all the possible locale combinations), and this kind of violates the
> basic idea of locale that you shouldn't need to recompile software to
> get it to speak French, but I just wanted to throw that idea out there.
Indeed, this idea violates that and many other principles:
- That support for Unicode should be cheap (your idea makes
setlocale(), which any portable program supporting non-ASCII text
needs to call, pull in a huge part of the library)
- That the person compiling the software generally has no idea what
languages the user will care about.
- That while character encodings and character identity are
essentially finished, settled matters that won't change, language
and culture are fluid. A program with locale data hard-linked into
is is basically guaranteed not only to be incomplete in the future,
but outright WRONG in the future. The best analogy I can think of
would be hard-coding timezones into the binary.
And probably many others. So I don't think this idea is viable.
Rich
next prev parent reply other threads:[~2014-07-14 3:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-12 5:10 Rich Felker
2014-07-12 6:02 ` Isaac Dunham
2014-07-12 14:26 ` Rich Felker
2014-07-12 19:13 ` Isaac Dunham
2014-07-12 7:24 ` u-igbb
2014-07-12 8:44 ` Laurent Bercot
2014-07-12 14:55 ` Rich Felker
2014-07-12 16:29 ` u-igbb
2014-07-12 17:00 ` Rich Felker
2014-07-12 17:15 ` u-igbb
2014-07-13 8:46 ` Weldon Goree
2014-07-14 3:48 ` Rich Felker [this message]
2014-07-14 17:55 ` Rich Felker
2014-07-12 14:41 ` Matias A. Fonzo
2014-07-12 14:58 ` Rich Felker
2014-07-12 15:03 ` Rich Felker
2014-07-12 16:41 ` Locale path and security [Was: Status towards next release (1.1.4)] Rich Felker
2014-07-12 17:04 ` Status towards next release (1.1.4) u-igbb
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=20140714034826.GP179@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).