2 # Copyright (C) 2000, 2001 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
4 # Contributes by Ulrich Drepper <drepper@redhat.com>.
7 # The GNU C Library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
12 # The GNU C Library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with the GNU C Library; if not, write to the Free
19 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
23 # Derived from the IEEE 2003.2 text. The standard only contains some
24 # wording describing the situations to be tested. It does not specify
25 # any specific tests. I.e., the tests below are in no case sufficient.
26 # They are hopefully necessary, though.
29 C "!#%+,-./01234567889" "!#%+,-./01234567889" 0
30 C ":;=@ABCDEFGHIJKLMNO" ":;=@ABCDEFGHIJKLMNO" 0
31 C "PQRSTUVWXYZ]abcdefg" "PQRSTUVWXYZ]abcdefg" 0
32 C "hijklmnopqrstuvwxyz" "hijklmnopqrstuvwxyz" 0
36 C "\"$&'()" "\\\"\\$\\&\\'\\(\\)" 0
37 C "*?[\\`|" "\\*\\?\\[\\\\\\`\\|" 0
41 C "?*[" "[?*[][?*[][?*[]" 0
47 C "aa/b" "?/b" NOMATCH
48 C "aa/b" "a?b" NOMATCH
49 C "a/bb" "a/?" NOMATCH
52 C "abc" "[abc]" NOMATCH
60 C "xyz" "[!abc]" NOMATCH
62 C "a" "[!abc]" NOMATCH
66 C "abc]" "[][abc]" NOMATCH
67 C "[]abc" "[][]abc" NOMATCH
69 C "aa]" "[!]a]" NOMATCH
76 C "-" "[[.-.][.].]]" 0
77 C "-" "[[.].][.-.]]" 0
78 C "-" "[[.-.][=u=]]" 0
79 C "-" "[[.-.][:alpha:]]" 0
80 C "a" "[![.a.]]" NOMATCH
83 C "a" "[[.b.]]" NOMATCH
84 C "a" "[[.b.][.c.]]" NOMATCH
85 C "a" "[[.b.][=b=]]" NOMATCH
91 C "b" "[[=a=][=b=]]" 0
92 C "a" "[[=a=][=b=]]" 0
93 C "a" "[[=a=][.b.]]" 0
94 C "a" "[[=a=][:digit:]]" 0
97 C "=" "[[=a=]b]" NOMATCH
98 C "]" "[[=a=]b]" NOMATCH
99 C "a" "[[=b=][=c=]]" NOMATCH
100 C "a" "[[=b=][.].]]" NOMATCH
101 C "a" "[[=b=][:digit:]]" NOMATCH
104 C "a" "[[:alnum:]]" 0
105 C "a" "[![:alnum:]]" NOMATCH
106 C "-" "[[:alnum:]]" NOMATCH
107 C "a]a" "[[:alnum:]]a" NOMATCH
108 C "-" "[[:alnum:]-]" 0
109 C "aa" "[[:alnum:]]a" 0
110 C "-" "[![:alnum:]]" 0
111 C "]" "[!][:alnum:]]" NOMATCH
112 C "[" "[![:alnum:][]" NOMATCH
113 C "a" "[[:alnum:]]" 0
114 C "b" "[[:alnum:]]" 0
115 C "c" "[[:alnum:]]" 0
116 C "d" "[[:alnum:]]" 0
117 C "e" "[[:alnum:]]" 0
118 C "f" "[[:alnum:]]" 0
119 C "g" "[[:alnum:]]" 0
120 C "h" "[[:alnum:]]" 0
121 C "i" "[[:alnum:]]" 0
122 C "j" "[[:alnum:]]" 0
123 C "k" "[[:alnum:]]" 0
124 C "l" "[[:alnum:]]" 0
125 C "m" "[[:alnum:]]" 0
126 C "n" "[[:alnum:]]" 0
127 C "o" "[[:alnum:]]" 0
128 C "p" "[[:alnum:]]" 0
129 C "q" "[[:alnum:]]" 0
130 C "r" "[[:alnum:]]" 0
131 C "s" "[[:alnum:]]" 0
132 C "t" "[[:alnum:]]" 0
133 C "u" "[[:alnum:]]" 0
134 C "v" "[[:alnum:]]" 0
135 C "w" "[[:alnum:]]" 0
136 C "x" "[[:alnum:]]" 0
137 C "y" "[[:alnum:]]" 0
138 C "z" "[[:alnum:]]" 0
139 C "A" "[[:alnum:]]" 0
140 C "B" "[[:alnum:]]" 0
141 C "C" "[[:alnum:]]" 0
142 C "D" "[[:alnum:]]" 0
143 C "E" "[[:alnum:]]" 0
144 C "F" "[[:alnum:]]" 0
145 C "G" "[[:alnum:]]" 0
146 C "H" "[[:alnum:]]" 0
147 C "I" "[[:alnum:]]" 0
148 C "J" "[[:alnum:]]" 0
149 C "K" "[[:alnum:]]" 0
150 C "L" "[[:alnum:]]" 0
151 C "M" "[[:alnum:]]" 0
152 C "N" "[[:alnum:]]" 0
153 C "O" "[[:alnum:]]" 0
154 C "P" "[[:alnum:]]" 0
155 C "Q" "[[:alnum:]]" 0
156 C "R" "[[:alnum:]]" 0
157 C "S" "[[:alnum:]]" 0
158 C "T" "[[:alnum:]]" 0
159 C "U" "[[:alnum:]]" 0
160 C "V" "[[:alnum:]]" 0
161 C "W" "[[:alnum:]]" 0
162 C "X" "[[:alnum:]]" 0
163 C "Y" "[[:alnum:]]" 0
164 C "Z" "[[:alnum:]]" 0
165 C "0" "[[:alnum:]]" 0
166 C "1" "[[:alnum:]]" 0
167 C "2" "[[:alnum:]]" 0
168 C "3" "[[:alnum:]]" 0
169 C "4" "[[:alnum:]]" 0
170 C "5" "[[:alnum:]]" 0
171 C "6" "[[:alnum:]]" 0
172 C "7" "[[:alnum:]]" 0
173 C "8" "[[:alnum:]]" 0
174 C "9" "[[:alnum:]]" 0
175 C "!" "[[:alnum:]]" NOMATCH
176 C "#" "[[:alnum:]]" NOMATCH
177 C "%" "[[:alnum:]]" NOMATCH
178 C "+" "[[:alnum:]]" NOMATCH
179 C "," "[[:alnum:]]" NOMATCH
180 C "-" "[[:alnum:]]" NOMATCH
181 C "." "[[:alnum:]]" NOMATCH
182 C "/" "[[:alnum:]]" NOMATCH
183 C ":" "[[:alnum:]]" NOMATCH
184 C ";" "[[:alnum:]]" NOMATCH
185 C "=" "[[:alnum:]]" NOMATCH
186 C "@" "[[:alnum:]]" NOMATCH
187 C "[" "[[:alnum:]]" NOMATCH
188 C "\\" "[[:alnum:]]" NOMATCH
189 C "]" "[[:alnum:]]" NOMATCH
190 C "^" "[[:alnum:]]" NOMATCH
191 C "_" "[[:alnum:]]" NOMATCH
192 C "{" "[[:alnum:]]" NOMATCH
193 C "}" "[[:alnum:]]" NOMATCH
194 C "~" "[[:alnum:]]" NOMATCH
195 C "\"" "[[:alnum:]]" NOMATCH
196 C "$" "[[:alnum:]]" NOMATCH
197 C "&" "[[:alnum:]]" NOMATCH
198 C "'" "[[:alnum:]]" NOMATCH
199 C "(" "[[:alnum:]]" NOMATCH
200 C ")" "[[:alnum:]]" NOMATCH
201 C "*" "[[:alnum:]]" NOMATCH
202 C "?" "[[:alnum:]]" NOMATCH
203 C "`" "[[:alnum:]]" NOMATCH
204 C "|" "[[:alnum:]]" NOMATCH
205 C "<" "[[:alnum:]]" NOMATCH
206 C ">" "[[:alnum:]]" NOMATCH
207 C "\t" "[[:cntrl:]]" 0
208 C "t" "[[:cntrl:]]" NOMATCH
209 C "t" "[[:lower:]]" 0
210 C "\t" "[[:lower:]]" NOMATCH
211 C "T" "[[:lower:]]" NOMATCH
212 C "\t" "[[:space:]]" 0
213 C "t" "[[:space:]]" NOMATCH
214 C "t" "[[:alpha:]]" 0
215 C "\t" "[[:alpha:]]" NOMATCH
216 C "0" "[[:digit:]]" 0
217 C "\t" "[[:digit:]]" NOMATCH
218 C "t" "[[:digit:]]" NOMATCH
219 C "\t" "[[:print:]]" NOMATCH
220 C "t" "[[:print:]]" 0
221 C "T" "[[:upper:]]" 0
222 C "\t" "[[:upper:]]" NOMATCH
223 C "t" "[[:upper:]]" NOMATCH
224 C "\t" "[[:blank:]]" 0
225 C "t" "[[:blank:]]" NOMATCH
226 C "\t" "[[:graph:]]" NOMATCH
227 C "t" "[[:graph:]]" 0
228 C "." "[[:punct:]]" 0
229 C "t" "[[:punct:]]" NOMATCH
230 C "\t" "[[:punct:]]" NOMATCH
231 C "0" "[[:xdigit:]]" 0
232 C "\t" "[[:xdigit:]]" NOMATCH
233 C "a" "[[:xdigit:]]" 0
234 C "A" "[[:xdigit:]]" 0
235 C "t" "[[:xdigit:]]" NOMATCH
236 C "a" "[[alpha]]" NOMATCH
237 C "a" "[[alpha:]]" NOMATCH
239 C "a]" "[[alpha:]]" 0
240 C "a" "[[:alpha:][.b.]]" 0
241 C "a" "[[:alpha:][=b=]]" 0
242 C "a" "[[:alpha:][:digit:]]" 0
243 C "a" "[[:digit:][:alpha:]]" 0
249 C "a" "[b-c]" NOMATCH
250 C "d" "[b-c]" NOMATCH
251 C "B" "[a-c]" NOMATCH
252 C "b" "[A-C]" NOMATCH
254 C "as" "[a-ca-z]" NOMATCH
257 C "a" "[[.a.]-[.c.]]" 0
260 C "b" "[[.a.]-[.c.]]" 0
263 C "c" "[[.a.]-[.c.]]" 0
264 C "d" "[[.a.]-c]" NOMATCH
265 C "d" "[a-[.c.]]" NOMATCH
266 C "d" "[[.a.]-[.c.]]" NOMATCH
269 C "a" "[c-a]" NOMATCH
270 C "a" "[[.c.]-a]" NOMATCH
271 C "a" "[c-[.a.]]" NOMATCH
272 C "a" "[[.c.]-[.a.]]" NOMATCH
273 C "c" "[c-a]" NOMATCH
274 C "c" "[[.c.]-a]" NOMATCH
275 C "c" "[c-[.a.]]" NOMATCH
276 C "c" "[[.c.]-[.a.]]" NOMATCH
280 C "d" "[a-c0-9]" NOMATCH
281 C "B" "[a-c0-9]" NOMATCH
286 C "-" "[!-a]" NOMATCH
290 C "a:" "a[0-9-a]" NOMATCH
298 C "as" "[a-c][a-z]" 0
302 C "asd/sdf" "as*df" 0
305 C "asd/sdf" "as*dg" NOMATCH
307 C "asdf" "as*df?" NOMATCH
328 C "//" "//" 0 PATHNAME
329 C "/.a" "/*" 0 PATHNAME
330 C "/.a" "/?a" 0 PATHNAME
331 C "/.a" "/[!a-z]a" 0 PATHNAME
332 C "/.a/.b" "/*/?b" 0 PATHNAME
335 C "/" "?" NOMATCH PATHNAME
336 C "/" "*" NOMATCH PATHNAME
337 C "a/b" "a?b" NOMATCH PATHNAME
338 C "/.a/.b" "/*b" NOMATCH PATHNAME
343 C "/[" "\\/[" NOMATCH
346 C "/$" "\\/\\$" NOMATCH NOESCAPE
347 C "/\\$" "\\/\\$" NOMATCH NOESCAPE
348 C "\\/\\$" "\\/\\$" 0 NOESCAPE
351 C ".asd" ".*" 0 PERIOD
352 C "/.asd" "*" 0 PERIOD
353 C "/as/.df" "*/?*f" 0 PERIOD
354 C "..asd" ".[!a-z]*" 0 PERIOD
357 C ".asd" "*" NOMATCH PERIOD
358 C ".asd" "?asd" NOMATCH PERIOD
359 C ".asd" "[!a-z]*" NOMATCH PERIOD
362 C "/." "/." 0 PATHNAME|PERIOD
363 C "/.a./.b." "/.*/.*" 0 PATHNAME|PERIOD
364 C "/.a./.b." "/.??/.??" 0 PATHNAME|PERIOD
367 C "/." "*" NOMATCH PATHNAME|PERIOD
368 C "/." "/*" NOMATCH PATHNAME|PERIOD
369 C "/." "/?" NOMATCH PATHNAME|PERIOD
370 C "/." "/[!a-z]" NOMATCH PATHNAME|PERIOD
371 C "/a./.b." "/*/*" NOMATCH PATHNAME|PERIOD
372 C "/a./.b." "/??/???" NOMATCH PATHNAME|PERIOD
374 # Some home-grown tests.
375 C "foobar" "foo*[abc]z" NOMATCH
376 C "foobaz" "foo*[abc][xyz]" 0
377 C "foobaz" "foo?*[abc][xyz]" 0
378 C "foobaz" "foo?*[abc][x/yz]" 0
379 C "foobaz" "foo?*[abc]/[xyz]" NOMATCH PATHNAME
380 C "a" "a/" NOMATCH PATHNAME
381 C "a/" "a" NOMATCH PATHNAME
382 C "//a" "/a" NOMATCH PATHNAME
383 C "/a" "//a" NOMATCH PATHNAME
385 # Following are tests outside the scope of IEEE 2003.2 since they are using
386 # locales other than the C locale. The main focus of the tests is on the
387 # handling of ranges and the recognition of character (vs bytes).
388 de_DE.ISO-8859-1 "a" "[a-z]" 0
389 de_DE.ISO-8859-1 "z" "[a-z]" 0
390 de_DE.ISO-8859-1 "ä" "[a-z]" 0
391 de_DE.ISO-8859-1 "ö" "[a-z]" 0
392 de_DE.ISO-8859-1 "ü" "[a-z]" 0
393 de_DE.ISO-8859-1 "A" "[a-z]" NOMATCH
394 de_DE.ISO-8859-1 "Z" "[a-z]" NOMATCH
395 de_DE.ISO-8859-1 "Ä" "[a-z]" NOMATCH
396 de_DE.ISO-8859-1 "Ö" "[a-z]" NOMATCH
397 de_DE.ISO-8859-1 "Ü" "[a-z]" NOMATCH
398 de_DE.ISO-8859-1 "a" "[A-Z]" NOMATCH
399 de_DE.ISO-8859-1 "z" "[A-Z]" NOMATCH
400 de_DE.ISO-8859-1 "ä" "[A-Z]" NOMATCH
401 de_DE.ISO-8859-1 "ö" "[A-Z]" NOMATCH
402 de_DE.ISO-8859-1 "ü" "[A-Z]" NOMATCH
403 de_DE.ISO-8859-1 "A" "[A-Z]" 0
404 de_DE.ISO-8859-1 "Z" "[A-Z]" 0
405 de_DE.ISO-8859-1 "Ä" "[A-Z]" 0
406 de_DE.ISO-8859-1 "Ö" "[A-Z]" 0
407 de_DE.ISO-8859-1 "Ü" "[A-Z]" 0
408 de_DE.ISO-8859-1 "a" "[[:lower:]]" 0
409 de_DE.ISO-8859-1 "z" "[[:lower:]]" 0
410 de_DE.ISO-8859-1 "ä" "[[:lower:]]" 0
411 de_DE.ISO-8859-1 "ö" "[[:lower:]]" 0
412 de_DE.ISO-8859-1 "ü" "[[:lower:]]" 0
413 de_DE.ISO-8859-1 "A" "[[:lower:]]" NOMATCH
414 de_DE.ISO-8859-1 "Z" "[[:lower:]]" NOMATCH
415 de_DE.ISO-8859-1 "Ä" "[[:lower:]]" NOMATCH
416 de_DE.ISO-8859-1 "Ö" "[[:lower:]]" NOMATCH
417 de_DE.ISO-8859-1 "Ü" "[[:lower:]]" NOMATCH
418 de_DE.ISO-8859-1 "a" "[[:upper:]]" NOMATCH
419 de_DE.ISO-8859-1 "z" "[[:upper:]]" NOMATCH
420 de_DE.ISO-8859-1 "ä" "[[:upper:]]" NOMATCH
421 de_DE.ISO-8859-1 "ö" "[[:upper:]]" NOMATCH
422 de_DE.ISO-8859-1 "ü" "[[:upper:]]" NOMATCH
423 de_DE.ISO-8859-1 "A" "[[:upper:]]" 0
424 de_DE.ISO-8859-1 "Z" "[[:upper:]]" 0
425 de_DE.ISO-8859-1 "Ä" "[[:upper:]]" 0
426 de_DE.ISO-8859-1 "Ö" "[[:upper:]]" 0
427 de_DE.ISO-8859-1 "Ü" "[[:upper:]]" 0
428 de_DE.ISO-8859-1 "a" "[[:alpha:]]" 0
429 de_DE.ISO-8859-1 "z" "[[:alpha:]]" 0
430 de_DE.ISO-8859-1 "ä" "[[:alpha:]]" 0
431 de_DE.ISO-8859-1 "ö" "[[:alpha:]]" 0
432 de_DE.ISO-8859-1 "ü" "[[:alpha:]]" 0
433 de_DE.ISO-8859-1 "A" "[[:alpha:]]" 0
434 de_DE.ISO-8859-1 "Z" "[[:alpha:]]" 0
435 de_DE.ISO-8859-1 "Ä" "[[:alpha:]]" 0
436 de_DE.ISO-8859-1 "Ö" "[[:alpha:]]" 0
437 de_DE.ISO-8859-1 "Ü" "[[:alpha:]]" 0
439 de_DE.ISO-8859-1 "a" "[[=a=]b]" 0
440 de_DE.ISO-8859-1 "â" "[[=a=]b]" 0
441 de_DE.ISO-8859-1 "Ã " "[[=a=]b]" 0
442 de_DE.ISO-8859-1 "á" "[[=a=]b]" 0
443 de_DE.ISO-8859-1 "ä" "[[=a=]b]" 0
444 de_DE.ISO-8859-1 "b" "[[=a=]b]" 0
445 de_DE.ISO-8859-1 "c" "[[=a=]b]" NOMATCH
446 de_DE.ISO-8859-1 "a" "[[=â=]b]" 0
447 de_DE.ISO-8859-1 "â" "[[=â=]b]" 0
448 de_DE.ISO-8859-1 "à " "[[=â=]b]" 0
449 de_DE.ISO-8859-1 "á" "[[=â=]b]" 0
450 de_DE.ISO-8859-1 "ä" "[[=â=]b]" 0
451 de_DE.ISO-8859-1 "b" "[[=â=]b]" 0
452 de_DE.ISO-8859-1 "c" "[[=â=]b]" NOMATCH
453 de_DE.ISO-8859-1 "a" "[[=Ã =]b]" 0
454 de_DE.ISO-8859-1 "â" "[[=à =]b]" 0
455 de_DE.ISO-8859-1 "Ã " "[[=Ã =]b]" 0
456 de_DE.ISO-8859-1 "á" "[[=à =]b]" 0
457 de_DE.ISO-8859-1 "ä" "[[=à =]b]" 0
458 de_DE.ISO-8859-1 "b" "[[=Ã =]b]" 0
459 de_DE.ISO-8859-1 "c" "[[=Ã =]b]" NOMATCH
460 de_DE.ISO-8859-1 "a" "[[=á=]b]" 0
461 de_DE.ISO-8859-1 "â" "[[=á=]b]" 0
462 de_DE.ISO-8859-1 "à " "[[=á=]b]" 0
463 de_DE.ISO-8859-1 "á" "[[=á=]b]" 0
464 de_DE.ISO-8859-1 "ä" "[[=á=]b]" 0
465 de_DE.ISO-8859-1 "b" "[[=á=]b]" 0
466 de_DE.ISO-8859-1 "c" "[[=á=]b]" NOMATCH
467 de_DE.ISO-8859-1 "a" "[[=ä=]b]" 0
468 de_DE.ISO-8859-1 "â" "[[=ä=]b]" 0
469 de_DE.ISO-8859-1 "à " "[[=ä=]b]" 0
470 de_DE.ISO-8859-1 "á" "[[=ä=]b]" 0
471 de_DE.ISO-8859-1 "ä" "[[=ä=]b]" 0
472 de_DE.ISO-8859-1 "b" "[[=ä=]b]" 0
473 de_DE.ISO-8859-1 "c" "[[=ä=]b]" NOMATCH
475 de_DE.ISO-8859-1 "aa" "[[.a.]]a" 0
476 de_DE.ISO-8859-1 "ba" "[[.a.]]a" NOMATCH
479 # And with a multibyte character set.
480 de_DE.UTF-8 "a" "[a-z]" 0
481 de_DE.UTF-8 "z" "[a-z]" 0
482 de_DE.UTF-8 "ä" "[a-z]" 0
483 de_DE.UTF-8 "ö" "[a-z]" 0
484 de_DE.UTF-8 "ü" "[a-z]" 0
485 de_DE.UTF-8 "A" "[a-z]" NOMATCH
486 de_DE.UTF-8 "Z" "[a-z]" NOMATCH
487 de_DE.UTF-8 "Ä" "[a-z]" NOMATCH
488 de_DE.UTF-8 "Ö" "[a-z]" NOMATCH
489 de_DE.UTF-8 "Ü" "[a-z]" NOMATCH
490 de_DE.UTF-8 "a" "[A-Z]" NOMATCH
491 de_DE.UTF-8 "z" "[A-Z]" NOMATCH
492 de_DE.UTF-8 "ä" "[A-Z]" NOMATCH
493 de_DE.UTF-8 "ö" "[A-Z]" NOMATCH
494 de_DE.UTF-8 "ü" "[A-Z]" NOMATCH
495 de_DE.UTF-8 "A" "[A-Z]" 0
496 de_DE.UTF-8 "Z" "[A-Z]" 0
497 de_DE.UTF-8 "Ä" "[A-Z]" 0
498 de_DE.UTF-8 "Ö" "[A-Z]" 0
499 de_DE.UTF-8 "Ü" "[A-Z]" 0
500 de_DE.UTF-8 "a" "[[:lower:]]" 0
501 de_DE.UTF-8 "z" "[[:lower:]]" 0
502 de_DE.UTF-8 "ä" "[[:lower:]]" 0
503 de_DE.UTF-8 "ö" "[[:lower:]]" 0
504 de_DE.UTF-8 "ü" "[[:lower:]]" 0
505 de_DE.UTF-8 "A" "[[:lower:]]" NOMATCH
506 de_DE.UTF-8 "Z" "[[:lower:]]" NOMATCH
507 de_DE.UTF-8 "Ä" "[[:lower:]]" NOMATCH
508 de_DE.UTF-8 "Ö" "[[:lower:]]" NOMATCH
509 de_DE.UTF-8 "Ü" "[[:lower:]]" NOMATCH
510 de_DE.UTF-8 "a" "[[:upper:]]" NOMATCH
511 de_DE.UTF-8 "z" "[[:upper:]]" NOMATCH
512 de_DE.UTF-8 "ä" "[[:upper:]]" NOMATCH
513 de_DE.UTF-8 "ö" "[[:upper:]]" NOMATCH
514 de_DE.UTF-8 "ü" "[[:upper:]]" NOMATCH
515 de_DE.UTF-8 "A" "[[:upper:]]" 0
516 de_DE.UTF-8 "Z" "[[:upper:]]" 0
517 de_DE.UTF-8 "Ä" "[[:upper:]]" 0
518 de_DE.UTF-8 "Ö" "[[:upper:]]" 0
519 de_DE.UTF-8 "Ü" "[[:upper:]]" 0
520 de_DE.UTF-8 "a" "[[:alpha:]]" 0
521 de_DE.UTF-8 "z" "[[:alpha:]]" 0
522 de_DE.UTF-8 "ä" "[[:alpha:]]" 0
523 de_DE.UTF-8 "ö" "[[:alpha:]]" 0
524 de_DE.UTF-8 "ü" "[[:alpha:]]" 0
525 de_DE.UTF-8 "A" "[[:alpha:]]" 0
526 de_DE.UTF-8 "Z" "[[:alpha:]]" 0
527 de_DE.UTF-8 "Ä" "[[:alpha:]]" 0
528 de_DE.UTF-8 "Ö" "[[:alpha:]]" 0
529 de_DE.UTF-8 "Ü" "[[:alpha:]]" 0
531 de_DE.UTF-8 "a" "[[=a=]b]" 0
532 de_DE.UTF-8 "â" "[[=a=]b]" 0
533 de_DE.UTF-8 "Ã " "[[=a=]b]" 0
534 de_DE.UTF-8 "á" "[[=a=]b]" 0
535 de_DE.UTF-8 "ä" "[[=a=]b]" 0
536 de_DE.UTF-8 "b" "[[=a=]b]" 0
537 de_DE.UTF-8 "c" "[[=a=]b]" NOMATCH
538 de_DE.UTF-8 "a" "[[=â=]b]" 0
539 de_DE.UTF-8 "â" "[[=â=]b]" 0
540 de_DE.UTF-8 "à " "[[=â=]b]" 0
541 de_DE.UTF-8 "á" "[[=â=]b]" 0
542 de_DE.UTF-8 "ä" "[[=â=]b]" 0
543 de_DE.UTF-8 "b" "[[=â=]b]" 0
544 de_DE.UTF-8 "c" "[[=â=]b]" NOMATCH
545 de_DE.UTF-8 "a" "[[=Ã =]b]" 0
546 de_DE.UTF-8 "â" "[[=à =]b]" 0
547 de_DE.UTF-8 "Ã " "[[=Ã =]b]" 0
548 de_DE.UTF-8 "á" "[[=à =]b]" 0
549 de_DE.UTF-8 "ä" "[[=à =]b]" 0
550 de_DE.UTF-8 "b" "[[=Ã =]b]" 0
551 de_DE.UTF-8 "c" "[[=Ã =]b]" NOMATCH
552 de_DE.UTF-8 "a" "[[=á=]b]" 0
553 de_DE.UTF-8 "â" "[[=á=]b]" 0
554 de_DE.UTF-8 "à " "[[=á=]b]" 0
555 de_DE.UTF-8 "á" "[[=á=]b]" 0
556 de_DE.UTF-8 "ä" "[[=á=]b]" 0
557 de_DE.UTF-8 "b" "[[=á=]b]" 0
558 de_DE.UTF-8 "c" "[[=á=]b]" NOMATCH
559 de_DE.UTF-8 "a" "[[=ä=]b]" 0
560 de_DE.UTF-8 "â" "[[=ä=]b]" 0
561 de_DE.UTF-8 "à " "[[=ä=]b]" 0
562 de_DE.UTF-8 "á" "[[=ä=]b]" 0
563 de_DE.UTF-8 "ä" "[[=ä=]b]" 0
564 de_DE.UTF-8 "b" "[[=ä=]b]" 0
565 de_DE.UTF-8 "c" "[[=ä=]b]" NOMATCH
567 de_DE.UTF-8 "aa" "[[.a.]]a" 0
568 de_DE.UTF-8 "ba" "[[.a.]]a" NOMATCH
571 # Test of GNU extensions.
572 C "x" "x" 0 PATHNAME|LEADING_DIR
573 C "x/y" "x" 0 PATHNAME|LEADING_DIR
574 C "x/y/z" "x" 0 PATHNAME|LEADING_DIR
575 C "x" "*" 0 PATHNAME|LEADING_DIR
576 C "x/y" "*" 0 PATHNAME|LEADING_DIR
577 C "x/y/z" "*" 0 PATHNAME|LEADING_DIR
578 C "x" "*x" 0 PATHNAME|LEADING_DIR
579 C "x/y" "*x" 0 PATHNAME|LEADING_DIR
580 C "x/y/z" "*x" 0 PATHNAME|LEADING_DIR
581 C "x" "x*" 0 PATHNAME|LEADING_DIR
582 C "x/y" "x*" 0 PATHNAME|LEADING_DIR
583 C "x/y/z" "x*" 0 PATHNAME|LEADING_DIR
584 C "x" "a" NOMATCH PATHNAME|LEADING_DIR
585 C "x/y" "a" NOMATCH PATHNAME|LEADING_DIR
586 C "x/y/z" "a" NOMATCH PATHNAME|LEADING_DIR
587 C "x" "x/y" NOMATCH PATHNAME|LEADING_DIR
588 C "x/y" "x/y" 0 PATHNAME|LEADING_DIR
589 C "x/y/z" "x/y" 0 PATHNAME|LEADING_DIR
590 C "x" "x?y" NOMATCH PATHNAME|LEADING_DIR
591 C "x/y" "x?y" NOMATCH PATHNAME|LEADING_DIR
592 C "x/y/z" "x?y" NOMATCH PATHNAME|LEADING_DIR
594 # ksh style matching.
595 C "abcd" "?@(a|b)*@(c)d" 0 EXTMATCH
596 C "/dev/udp/129.22.8.102/45" "/dev/@(tcp|udp)/*/*" 0 PATHNAME|EXTMATCH
597 C "12" "[1-9]*([0-9])" 0 EXTMATCH
598 C "12abc" "[1-9]*([0-9])" NOMATCH EXTMATCH
599 C "1" "[1-9]*([0-9])" 0 EXTMATCH
600 C "07" "+([0-7])" 0 EXTMATCH
601 C "0377" "+([0-7])" 0 EXTMATCH
602 C "09" "+([0-7])" NOMATCH EXTMATCH
603 C "paragraph" "para@(chute|graph)" 0 EXTMATCH
604 C "paramour" "para@(chute|graph)" NOMATCH EXTMATCH
605 C "para991" "para?([345]|99)1" 0 EXTMATCH
606 C "para381" "para?([345]|99)1" NOMATCH EXTMATCH
607 C "paragraph" "para*([0-9])" NOMATCH EXTMATCH
608 C "para" "para*([0-9])" 0 EXTMATCH
609 C "para13829383746592" "para*([0-9])" 0 EXTMATCH
610 C "paragraph" "para+([0-9])" NOMATCH EXTMATCH
611 C "para" "para+([0-9])" NOMATCH EXTMATCH
612 C "para987346523" "para+([0-9])" 0 EXTMATCH
613 C "paragraph" "para!(*.[0-9])" 0 EXTMATCH
614 C "para.38" "para!(*.[0-9])" 0 EXTMATCH
615 C "para.graph" "para!(*.[0-9])" 0 EXTMATCH
616 C "para39" "para!(*.[0-9])" 0 EXTMATCH
617 C "" "*(0|1|3|5|7|9)" 0 EXTMATCH
618 C "137577991" "*(0|1|3|5|7|9)" 0 EXTMATCH
619 C "2468" "*(0|1|3|5|7|9)" NOMATCH EXTMATCH
620 C "1358" "*(0|1|3|5|7|9)" NOMATCH EXTMATCH
621 C "file.c" "*.c?(c)" 0 EXTMATCH
622 C "file.C" "*.c?(c)" NOMATCH EXTMATCH
623 C "file.cc" "*.c?(c)" 0 EXTMATCH
624 C "file.ccc" "*.c?(c)" NOMATCH EXTMATCH
625 C "parse.y" "!(*.c|*.h|Makefile.in|config*|README)" 0 EXTMATCH
626 C "shell.c" "!(*.c|*.h|Makefile.in|config*|README)" NOMATCH EXTMATCH
627 C "Makefile" "!(*.c|*.h|Makefile.in|config*|README)" 0 EXTMATCH
628 C "VMS.FILE;1" "*\;[1-9]*([0-9])" 0 EXTMATCH
629 C "VMS.FILE;0" "*\;[1-9]*([0-9])" NOMATCH EXTMATCH
630 C "VMS.FILE;" "*\;[1-9]*([0-9])" NOMATCH EXTMATCH
631 C "VMS.FILE;139" "*\;[1-9]*([0-9])" 0 EXTMATCH
632 C "VMS.FILE;1N" "*\;[1-9]*([0-9])" NOMATCH EXTMATCH
633 C "abcfefg" "ab**(e|f)" 0 EXTMATCH
634 C "abcfefg" "ab**(e|f)g" 0 EXTMATCH
635 C "ab" "ab*+(e|f)" NOMATCH EXTMATCH
636 C "abef" "ab***ef" 0 EXTMATCH
637 C "abef" "ab**" 0 EXTMATCH
638 C "fofo" "*(f*(o))" 0 EXTMATCH
639 C "ffo" "*(f*(o))" 0 EXTMATCH
640 C "foooofo" "*(f*(o))" 0 EXTMATCH
641 C "foooofof" "*(f*(o))" 0 EXTMATCH
642 C "fooofoofofooo" "*(f*(o))" 0 EXTMATCH
643 C "foooofof" "*(f+(o))" NOMATCH EXTMATCH
644 C "xfoooofof" "*(f*(o))" NOMATCH EXTMATCH
645 C "foooofofx" "*(f*(o))" NOMATCH EXTMATCH
646 C "ofxoofxo" "*(*(of*(o)x)o)" 0 EXTMATCH
647 C "ofooofoofofooo" "*(f*(o))" NOMATCH EXTMATCH
648 C "foooxfooxfoxfooox" "*(f*(o)x)" 0 EXTMATCH
649 C "foooxfooxofoxfooox" "*(f*(o)x)" NOMATCH EXTMATCH
650 C "foooxfooxfxfooox" "*(f*(o)x)" 0 EXTMATCH
651 C "ofxoofxo" "*(*(of*(o)x)o)" 0 EXTMATCH
652 C "ofoooxoofxo" "*(*(of*(o)x)o)" 0 EXTMATCH
653 C "ofoooxoofxoofoooxoofxo" "*(*(of*(o)x)o)" 0 EXTMATCH
654 C "ofoooxoofxoofoooxoofxoo" "*(*(of*(o)x)o)" 0 EXTMATCH
655 C "ofoooxoofxoofoooxoofxofo" "*(*(of*(o)x)o)" NOMATCH EXTMATCH
656 C "ofoooxoofxoofoooxoofxooofxofxo" "*(*(of*(o)x)o)" 0 EXTMATCH
657 C "aac" "*(@(a))a@(c)" 0 EXTMATCH
658 C "ac" "*(@(a))a@(c)" 0 EXTMATCH
659 C "c" "*(@(a))a@(c)" NOMATCH EXTMATCH
660 C "aaac" "*(@(a))a@(c)" 0 EXTMATCH
661 C "baaac" "*(@(a))a@(c)" NOMATCH EXTMATCH
662 C "abcd" "?@(a|b)*@(c)d" 0 EXTMATCH
663 C "abcd" "@(ab|a*@(b))*(c)d" 0 EXTMATCH
664 C "acd" "@(ab|a*(b))*(c)d" 0 EXTMATCH
665 C "abbcd" "@(ab|a*(b))*(c)d" 0 EXTMATCH
666 C "effgz" "@(b+(c)d|e*(f)g?|?(h)i@(j|k))" 0 EXTMATCH
667 C "efgz" "@(b+(c)d|e*(f)g?|?(h)i@(j|k))" 0 EXTMATCH
668 C "egz" "@(b+(c)d|e*(f)g?|?(h)i@(j|k))" 0 EXTMATCH
669 C "egzefffgzbcdij" "*(b+(c)d|e*(f)g?|?(h)i@(j|k))" 0 EXTMATCH
670 C "egz" "@(b+(c)d|e+(f)g?|?(h)i@(j|k))" NOMATCH EXTMATCH
671 C "ofoofo" "*(of+(o))" 0 EXTMATCH
672 C "oxfoxoxfox" "*(oxf+(ox))" 0 EXTMATCH
673 C "oxfoxfox" "*(oxf+(ox))" NOMATCH EXTMATCH
674 C "ofoofo" "*(of+(o)|f)" 0 EXTMATCH
675 C "foofoofo" "@(foo|f|fo)*(f|of+(o))" 0 EXTMATCH
676 C "oofooofo" "*(of|oof+(o))" 0 EXTMATCH
677 C "fffooofoooooffoofffooofff" "*(*(f)*(o))" 0 EXTMATCH
678 C "fofoofoofofoo" "*(fo|foo)" 0 EXTMATCH
679 C "foo" "!(x)" 0 EXTMATCH
680 C "foo" "!(x)*" 0 EXTMATCH
681 C "foo" "!(foo)" NOMATCH EXTMATCH
682 C "foo" "!(foo)*" 0 EXTMATCH
683 C "foobar" "!(foo)" 0 EXTMATCH
684 C "foobar" "!(foo)*" 0 EXTMATCH
685 C "moo.cow" "!(*.*).!(*.*)" 0 EXTMATCH
686 C "mad.moo.cow" "!(*.*).!(*.*)" NOMATCH EXTMATCH
687 C "mucca.pazza" "mu!(*(c))?.pa!(*(z))?" NOMATCH EXTMATCH
688 C "fff" "!(f)" 0 EXTMATCH
689 C "fff" "*(!(f))" 0 EXTMATCH
690 C "fff" "+(!(f))" 0 EXTMATCH
691 C "ooo" "!(f)" 0 EXTMATCH
692 C "ooo" "*(!(f))" 0 EXTMATCH
693 C "ooo" "+(!(f))" 0 EXTMATCH
694 C "foo" "!(f)" 0 EXTMATCH
695 C "foo" "*(!(f))" 0 EXTMATCH
696 C "foo" "+(!(f))" 0 EXTMATCH
697 C "f" "!(f)" NOMATCH EXTMATCH
698 C "f" "*(!(f))" NOMATCH EXTMATCH
699 C "f" "+(!(f))" NOMATCH EXTMATCH
700 C "foot" "@(!(z*)|*x)" 0 EXTMATCH
701 C "zoot" "@(!(z*)|*x)" NOMATCH EXTMATCH
702 C "foox" "@(!(z*)|*x)" 0 EXTMATCH
703 C "zoox" "@(!(z*)|*x)" 0 EXTMATCH
704 C "foo" "*(!(foo)) 0 EXTMATCH
705 C "foob" "!(foo)b*" NOMATCH EXTMATCH
706 C "foobb" "!(foo)b*" 0 EXTMATCH
707 C "[" "*([a[])" 0 EXTMATCH
708 C "]" "*([]a[])" 0 EXTMATCH
709 C "a" "*([]a[])" 0 EXTMATCH
710 C "b" "*([!]a[])" 0 EXTMATCH
711 C "[" "*([!]a[]|[[])" 0 EXTMATCH
712 C "]" "*([!]a[]|[]])" 0 EXTMATCH
713 C "[" "!([!]a[])" 0 EXTMATCH
714 C "]" "!([!]a[])" 0 EXTMATCH
715 C ")" "*([)])" 0 EXTMATCH
716 C "*" "*([*(])" 0 EXTMATCH
717 C "abcd" "*!(|a)cd" 0 EXTMATCH
718 C "ab/.a" "+([abc])/*" NOMATCH EXTMATCH|PATHNAME|PERIOD
721 C "" "*([abc])" 0 EXTMATCH
722 C "" "?([abc])" 0 EXTMATCH