illumos has done a free and clear implementation of locale support for
libc, and, in fact, it was taken from FreeBSD. Have a look at:
https://www.illumos.org/projects/illumos-gate/repository/show/usr/src/lib/libc/port/locale
I'd love it if we could get libc++ ported to illumos. I've got two
bugs already filed for issues I had with the build infrastructure that
our porting system turned up (12517 & 12518). I'll file another issue
for the test suite issues, of which there were three for LLVM and one
for clang IIRC.
On Tue, Apr 10, 2012 at 11:41 AM, David Chisnall <csdavec at swan.ac.uk>
wrote:> Open bug reports, and if you could add me to the CC list that would be
great. I did the Solaris port for a customer and I have a couple of diffs that
I need to commit, which may fix some things for you. I'm not sure how
applicable it is to Illumos, but on Solaris 10 and 11 on x86-64 they've got
LLVM/Clang (self-hosting) running on top of libc++ / libcxxrt and able to build
their own projects.
>
> The libc++ port to Solaris is a little bit ugly because they can't hack
up libc and Solaris libc locale support is something that Sun bought around 1994
and never touched subsequently, but for Illumos maybe you can import the xlocale
implementation from FreeBSD? I'd be happy to help with porting this if
you're interested.
>
> David