aboutsummaryrefslogtreecommitdiff
path: root/src/multibyte/internal.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* fix erroneous acceptance of f4 9x xx xx code sequences by utf-8 decoder•••the DFA table controlling accepted ranges for the f4 prefix used an incorrect upper bound of 0xa0 where it should have been 0x90, allowing such sequences to be accepted and decoded as non-Unicode-scalar values 0x110000 through 0x11ffff. Rich Felker2017-09-011-1/+1
* remove comments on copyright status from UTF-8 implementation files•••despite clarifications made to the COPYRIGHT file in commit f0a61399330bae42beeb27d6ecd05570b3382a60, there continues to be confusion about whether the permissions granted actually apply to all files. I am the sole author of these files and clearly intend, and have always intended, for the grant of permission to apply to them. Rich Felker2016-06-211-6/+0
* remove cruft for libc struct accessor function and broken visibility•••these were hacks to work around toolchains that could not properly optimize PIC accesses based on visibility and would generate GOT lookups even for hidden data, which broke the old dynamic linker. since commit f3ddd173806fd5c60b3f034528ca24542aecc5b9 it no longer matters; the dynamic linker does not assume accessibility of this data until stage 3. Rich Felker2015-04-221-4/+0
* include cleanups: remove unused headers and add feature test macrosSzabolcs Nagy2013-12-121-2/+0
* new attempt at working around the gcc 3 visibility bug•••since gcc is failing to generate the necessary ".hidden" directive in the output asm, generate it explicitly with an __asm__ statement... Rich Felker2012-02-241-0/+4
* remove useless attribute visibility from definitions•••this was a failed attempt at working around the gcc 3 visibility bug affecting x86_64. subsequent patch will address it with an ugly but working hack. Rich Felker2012-02-241-1/+1
* cleanup and work around visibility bug in gcc 3 that affects x86_64•••in gcc 3, the visibility attribute must be placed on both the declaration and on the definition. if it's omitted from the definition, the compiler fails to emit the ".hidden" directive in the assembly, and the linker will either generate textrels (if supported, such as on i386) or refuse to link (on targets where certain types of textrels are forbidden or impossible without further assumptions about memory layout, such as on x86_64). this patch also unifies the decision about when to use visibility into libc.h and makes the visibility in the utf-8 state machine tables based on libc.h rather than a duplicate test. Rich Felker2012-02-231-1/+1
* cleanup utf-8 multibyte code, use visibility if possible•••this code was written independently of musl, with support for a the backwards, nonstandard "31-bit unicode" some libraries/apps might want. unfortunately the extra code (inside #ifdef) makes the source harder to read and makes code that should be simple look complex, so i'm removing it. anyone who wants to use the old code can find it in the history or from elsewhere. also, change the visibility of the __fsmu8 state machine table to hidden, if supported. this should improve performance slightly in shared-library builds. Rich Felker2011-02-271-27/+1
* initial check-in, version 0.5.0Rich Felker2011-02-121-0/+60