We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 172a785 commit aaaa994Copy full SHA for aaaa994
sortdb.c
@@ -29,7 +29,7 @@
29
#include <wchar.h>
30
#include <wctype.h>
31
32
-__RCSID("$MirOS: wtf/sortdb.c,v 1.26 2023/02/28 20:01:19 tg Exp $");
+__RCSID("$MirOS: wtf/sortdb.c,v 1.27 2023/12/04 22:39:21 tg Exp $");
33
34
#define MAXCASECONV 512
35
struct cconv {
@@ -541,6 +541,20 @@ main(int argc, char *argv[])
541
cwp = pwp;
542
goto do_dupbase;
543
}
544
+ /* and trailing tags */
545
+ while (cwp > twp && *cwp == L']') {
546
+ wchar_t *pwp = wcsrchr(twp, '[');
547
+ if (pwp == NULL)
548
+ break;
549
+ if (pwp == twp) {
550
+ fprintf(stderr, "I: #%zu empty <%s>\n",
551
+ nlines + 1, lines[nlines].literal);
552
553
+ }
554
+ cwp = pwp;
555
+ goto do_dupbase;
556
557
+
558
--cp;
559
if (asp) {
560
/* length difference? */
0 commit comments