musl - an implementation of the standard library for Linux-based systems
Go to file
Rich Felker 2d51c4ad57 make nl_langinfo(CODESET) always return "ASCII" in byte-based C locale
commit 844212d94f, which did not make it
into any releases, changed nl_langinfo(CODESET) to always return
"UTF-8", even in the byte-based C locale. this was problematic because
application software was found to use the string match for "UTF-8" to
activate its own UTF-8 processing. this both undermines the byte-based
functionality of the C locale, and if mixed with with calls to the
standard multibyte functions, which happened in practice, could result
in severe mis-handling of input.

the motive for the previous change was that, to avoid widespread
compatibility problems, the string returned by nl_langinfo(CODESET)
needs to be accepted by iconv and by third-party character conversion
code. thus, the only remaining choice is "ASCII". this choice
accurately represents the intent that high bytes do not have
individual meaning in the C locale, but it does mean that iconv, when
passed nl_langinfo(CODESET) in the C locale, will produce errors in
cases where mbrtowc would have succeeded. for reference, glibc behaves
similarly in this regard, so I don't think it will be a problem.
2015-10-01 22:59:56 +00:00
arch fix signal return for sh/fdpic 2015-09-23 18:33:49 +00:00
crt make sh crti/crtn init/fini fragments setup proper stack frame 2015-09-12 02:50:28 +00:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include remove attribute((const)) from pthread_self and errno location decls 2015-09-17 04:45:01 +00:00
lib new solution for empty lib dir (old one had some problems) 2011-02-17 17:12:52 -05:00
src make nl_langinfo(CODESET) always return "ASCII" in byte-based C locale 2015-10-01 22:59:56 +00:00
tools Build process uses script to add CFI directives to x86 asm 2015-08-26 14:55:13 +00:00
.gitignore add musl-clang, a wrapper for system clang installs 2015-07-06 23:52:16 +00:00
COPYRIGHT update authors/contributors list 2015-03-16 18:43:54 -04:00
INSTALL update notice on broken gcc versions in INSTALL file 2014-07-31 19:02:54 -04:00
Makefile remove use of buggy .SECONDARY special target in makefile 2015-08-30 18:44:58 +00:00
README update version reference in the README file 2014-06-25 14:16:53 -04:00
VERSION release 1.1.11 2015-08-30 04:15:56 +00:00
WHATSNEW release 1.1.11 2015-08-30 04:15:56 +00:00
configure eliminate protected-visibility data in libc.so with vis.h preinclude 2015-09-29 02:44:05 +00:00

README

    musl libc

musl, pronounced like the word "mussel", is an MIT-licensed
implementation of the standard C library targetting the Linux syscall
API, suitable for use in a wide range of deployment environments. musl
offers efficient static and dynamic linking support, lightweight code
and low runtime overhead, strong fail-safe guarantees under correct
usage, and correctness in the sense of standards conformance and
safety. musl is built on the principle that these goals are best
achieved through simple code that is easy to understand and maintain.

The 1.1 release series for musl features coverage for all interfaces
defined in ISO C99 and POSIX 2008 base, along with a number of
non-standardized interfaces for compatibility with Linux, BSD, and
glibc functionality.

For basic installation instructions, see the included INSTALL file.
Information on full musl-targeted compiler toolchains, system
bootstrapping, and Linux distributions built on musl can be found on
the project website:

    http://www.musl-libc.org/