diff options
author | Rich Felker <dalias@aerifal.cx> | 2017-03-21 12:13:59 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-03-21 12:19:47 -0400 |
commit | e6917eced2cc841fe3dfd9c04deec9202f9e34f3 (patch) | |
tree | b4821f8a8a3655a421bc4b066053b2858a181537 /src/linux/sysinfo.c | |
parent | e4fc9ad780e36c84e1ed6b0fc01b3c53ae65ff9d (diff) | |
download | musl-e6917eced2cc841fe3dfd9c04deec9202f9e34f3.tar.gz musl-e6917eced2cc841fe3dfd9c04deec9202f9e34f3.tar.bz2 musl-e6917eced2cc841fe3dfd9c04deec9202f9e34f3.tar.xz musl-e6917eced2cc841fe3dfd9c04deec9202f9e34f3.zip |
increase limit on locale name length from 15 to 23 bytes
the old limit was one byte too short to support locale names of the
form xx_XX.UTF-8@modifier where modifier is more than 3 bytes, a form
which various real-world locale names take. the problem could be
avoided by omitting the useless ".UTF-8" part, but users may need to
have it present when operating on mixed-libc systems or when it will
be carried over (e.g. across ssh) to other systems.
the new limit is chosen sufficient for existing/reasonable locale
names while still keeping the size of setlocale's static buffer small.
also add locale_impl.h to the Makefile's list of headers which force
rebuild of source files, to prevent dangerously inconsistent object
files from getting used after this change.
Diffstat (limited to 'src/linux/sysinfo.c')
0 files changed, 0 insertions, 0 deletions