[msan] Fix strxfrm test

Revert D83719 and explicitly set locate to "C".
This commit is contained in:
Vitaly Buka 2020-07-17 01:45:14 -07:00
parent 02c74907e0
commit 650baf22e6
1 changed files with 2 additions and 2 deletions

View File

@ -7,12 +7,12 @@
#include <string.h>
int main(void) {
char q[30];
char q[10];
size_t n = strxfrm(q, "abcdef", sizeof(q));
assert(n < sizeof(q));
__msan_check_mem_is_initialized(q, n + 1);
locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t)0);
__msan_poison(&q, sizeof(q));
n = strxfrm_l(q, "qwerty", sizeof(q), loc);