mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Beginning of locale-loading code committed
Date: Thu, 24 Jul 2014 12:11:13 -0400	[thread overview]
Message-ID: <20140724161113.GA4156@brightrain.aerifal.cx> (raw)

Last night I committed the locale loading code as commit
6cb4f91db7a5dc3bca63037ddc5f998a08dc3fb0. It doesn't do much
interesting yet (since the loaded data is not used) but you can
observe its behavior via calls to setlocale to set and query the
locale category values.

One thing I left out at this point is a default locale path when
MUSL_LOCPATH is not set. We could consider adding it later, but as
long as the locale code is new and experimental, I tend to think it's
better to have all locale-loading functionality disabled unless the
user/admin/distro has explicitly set a locale path. This will avoid
unexpected changes in behavior for existing deployments upgrading to
1.1.4 (except possibly the byte-based C locale, if we merge it, since
it's of course built-in). It also avoids imposing any policy, even a
default one. Of course the disadvantage is that suid programs have no
way of using locale, so we will have to find some way of providing a
default (or a way to load a path from the filesystem) at some point.

Rich


                 reply	other threads:[~2014-07-24 16:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20140724161113.GA4156@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).