10 char *sp1
, *sp2
, *sp3
, *sp4
;
11 wchar_t *lsp1
, *lsp2
, *lsp3
, *lsp4
;
19 printf ("test at line %d failed\n", __LINE__); \
22 setlocale (LC_ALL
, "de_DE.UTF-8");
23 if (sscanf ("A \xc3\x84-\t\t\xc3\x84-abcdefbcd\t\xc3\x84-B",
24 "A%ms%10ms%4m[bcd]%4mcB", &sp1
, &sp2
, &sp3
, &sp4
) != 4)
28 if (strcmp (sp1
, "\xc3\x84-") != 0)
31 if (strcmp (sp2
, "\xc3\x84-abcdefb") != 0)
34 if (strcmp (sp3
, "cd") != 0)
37 if (memcmp (sp4
, "\t\xc3\x84-", 4) != 0)
42 if (sscanf ("A \xc3\x84-\t\t\xc3\x84-abcdefbcd\t\xc3\x84-BB",
43 "A%mS%10mls%4ml[bcd]%4mCB", &lsp1
, &lsp2
, &lsp3
, &lsp4
) != 4)
47 if (wcscmp (lsp1
, L
"\xc4-") != 0)
50 if (wcscmp (lsp2
, L
"\xc4-abcdefbc") != 0)
53 if (wcscmp (lsp3
, L
"d") != 0)
56 if (memcmp (lsp4
, L
"\t\xc4-B", 4 * sizeof (wchar_t)) != 0)
61 memset (buf
, '/', sizeof (buf
));
70 if (sscanf (buf
, "%ms%mc", &sp1
, &sp2
) != 2)
74 if (sp1
[0] != '\xc3' || sp1
[1] != '\x84'
75 || sp1
[2046] != '\xc3' || sp1
[2047] != '\x84'
80 for (i
= 2; i
< 2056; i
++)
88 if (sscanf (buf
, "%2048ms%mc", &sp3
, &sp4
) != 2)
92 if (sp3
[0] != '\xc3' || sp3
[1] != '\x84'
93 || sp3
[2046] != '\xc3' || sp3
[2047] != '\x84'
96 for (i
= 2; i
< 2046; i
++)
104 if (sscanf (buf
, "%4mc%1500m[dr/]%548m[abc/d]%3mc", &sp1
, &sp2
, &sp3
, &sp4
)
109 if (memcmp (sp1
, "\t \xc3\x84", 4) != 0)
112 for (i
= 0; i
< 1500; i
++)
115 if (sp2
[1500] != '\0')
118 for (i
= 0; i
< 544; i
++)
121 if (sp3
[544] != '\0')
124 if (memcmp (sp4
, "\xc3\x84/", 3) != 0)
128 if (sscanf (buf
, "%mS%mC", &lsp1
, &lsp2
) != 2)
132 if (lsp1
[0] != L
'\xc4' || lsp1
[2045] != L
'\xc4'
133 || lsp1
[2054] != L
'\0')
136 for (i
= 1; i
< 2054; i
++)
140 if (lsp2
[0] != L
'\t')
144 if (sscanf (buf
, "%2048mls%mlc", &lsp3
, &lsp4
) != 2)
148 if (lsp3
[0] != L
'\xc4' || lsp3
[2045] != L
'\xc4'
149 || lsp3
[2048] != L
'\0')
152 for (i
= 1; i
< 2048; i
++)
160 if (sscanf (buf
, "%4mC%1500ml[dr/]%548ml[abc/d]%3mlc",
161 &lsp1
, &lsp2
, &lsp3
, &lsp4
) != 4)
165 if (memcmp (lsp1
, L
"\t \xc4/", 4 * sizeof (wchar_t)) != 0)
168 for (i
= 0; i
< 1500; i
++)
171 if (lsp2
[1500] != L
'\0')
174 for (i
= 0; i
< 543; i
++)
177 if (lsp3
[543] != L
'\0')
180 if (memcmp (lsp4
, L
"\xc4//", 3 * sizeof (wchar_t)) != 0)