1 /* Test case by Al Viro <aviro@redhat.com>. */
7 /* MB_CUR_MAX multibyte ones (6 UTF+0080, in this case) */
8 static const char string
[] = "\
9 \xc2\x80\xc2\x80\xc2\x80\xc2\x80\xc2\x80\xc2\x80";
14 if (setlocale (LC_ALL
, "de_DE.UTF-8") == NULL
)
16 puts ("cannot set locale");
21 int n
= sscanf (string
, "%l[\x80\xc2]", s
);
24 printf ("return values %d != 1\n", n
);