aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/tst-iconv4.c
diff options
context:
space:
mode:
authorRafal Luzynski <digitalfreak@lingonborough.com>2017-07-12 01:32:33 +0200
committerRafal Luzynski <digitalfreak@lingonborough.com>2017-10-28 01:46:14 +0200
commitf301e5334065e93aace667fd4a87bce6fc1dbd13 (patch)
tree47234d1ead02ab03f501a6071d6190a7b5fe9c5b /iconvdata/tst-iconv4.c
parent7e9d70736b98950522549e63d5bb7f81ff9eb93b (diff)
downloadglibc-f301e5334065e93aace667fd4a87bce6fc1dbd13.tar
glibc-f301e5334065e93aace667fd4a87bce6fc1dbd13.tar.gz
glibc-f301e5334065e93aace667fd4a87bce6fc1dbd13.tar.bz2
glibc-f301e5334065e93aace667fd4a87bce6fc1dbd13.zip
Correct the size of _nl_value_type_LC_... arrays.
There were several problems with checking the array size in the past, for example BZ#356, caused by incorrectly assuming that every locale token represents one element. In fact, if a token represented a subarray, for example an array of month names or characters category and it appeared at the end of the array the compiler assumed that the array ends just after the first element of the subarray. A workaround used in the past was to skip some categories while testing, for example LC_CTYPE. Now when we are about to add alternative month names to LC_TIME (BZ#10871) this will fail again. * locale/loadlocale.c: Correct size of _nl_value_type_LC_<category> arrays. Reviewed-by: Zack Weinberg <zackw@panix.com>
Diffstat (limited to 'iconvdata/tst-iconv4.c')
0 files changed, 0 insertions, 0 deletions