Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 11 Mar 2019 13:45:31 -0500
From: "A. Wilcox" <awilfox@...lielinux.org>
To: musl@...ts.openwall.com
Subject: Slight improvement to __get_locale?

Hi muslers,

We have a proposal to make locales work a tiny bit better on musl.
Currently, there is no locale map file (which, there generally will
never be one, until the rest of the locale system is overhauled and made
more..public), and musl will simply let you setlocale(3) to anything.

Our proposal is that __get_locale could determine if any of the
following paths exist:

/usr/share/locale/$foo
/usr/share/locale/${foo/.//}

If one exists, the function succeeds.  Otherwise, it fails.  The builtin
locales would not be affected, so C.UTF-8 and POSIX would always be
available and working.

I seem to recall that a similar discussion was had here many years ago,
but I could not find it in my archives (and Openwall still has no search
functionality).  I would be willing to write the implementation, and we
would be testing it in a wide variety of environments across different
CPU architectures and software packages.

The only drawback we have determined would be that this may not be
compatible with slashpackage.  There may be others, but they were not
immediately evident.  If the musl community does not want this, we are
okay with that as well.

Best,
--arw

-- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
https://www.adelielinux.org



Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.