/contrib/sdk/sources/newlib/libc/locale/ldpart.c |
---|
110,7 → 110,7 |
goto bad_locale; |
if (st.st_size <= 0) |
goto bad_locale; |
bufsize = namesize + st.st_size; |
bufsize = namesize + st.st_size + 1; |
locale_buf = NULL; |
if (lbuf == NULL || lbuf == locale_buf_C) |
137,6 → 137,7 |
/* |
* Parse the locale file into localebuf. |
*/ |
p[st.st_size] = '\0'; |
if (plim[-1] != '\n') |
goto bad_lbuf; |
num_lines = split_lines(p, plim); |
/contrib/sdk/sources/newlib/libc/locale/locale.c |
---|
88,7 → 88,7 |
/usr/share/locale/locale.alias. |
(<<"">> is also accepted; if given, the settings are read from the |
corresponding LC_* environment variables and $LANG according to POSIX rules. |
corresponding LC_* environment variables and $LANG according to POSIX rules.) |
This implementation also supports the modifier <<"cjknarrow">>, which |
affects how the functions <<wcwidth>> and <<wcswidth>> handle characters |