bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: htags with --style-sheet fails with broken pipe


From: Shigio Yamaguchi
Subject: Re: htags with --style-sheet fails with broken pipe
Date: Fri, 25 Apr 2003 10:14:34 +0900

Hello,

> My htags fails with --style-sheet saying
> 
> $ htags --style-sheet css.include
> gtags: illegal internal file format (--write).
> Daten=FCbergabe unterbrochen (broken pipe)

I have fixed the bug, I think.  Would you please try this patch?
Thank you!

Index: gtags/gtags.c
===================================================================
RCS file: /cvsroot/global/global/gtags/gtags.c,v
retrieving revision 1.66
diff -c -r1.66 gtags.c
*** gtags/gtags.c       22 Apr 2003 13:49:53 -0000      1.66
--- gtags/gtags.c       25 Apr 2003 00:58:58 -0000
***************
*** 490,496 ****
  
                while (strbuf_fgets(ib, stdin, STRBUF_NOCRLF) != NULL) {
                        char *p = strbuf_value(ib);
!                       if (*p == '<') {
                                strbuf_putc(ib, '\n');
                                fputs(p, op);
                        } else {
--- 490,496 ----
  
                while (strbuf_fgets(ib, stdin, STRBUF_NOCRLF) != NULL) {
                        char *p = strbuf_value(ib);
!                       if (*p == '<' || *p == '\t') {
                                strbuf_putc(ib, '\n');
                                fputs(p, op);
                        } else {
Index: htags/htags.in
===================================================================
RCS file: /cvsroot/global/global/htags/htags.in,v
retrieving revision 1.114
diff -c -r1.114 htags.in
*** htags/htags.in      20 Apr 2003 22:29:59 -0000      1.114
--- htags/htags.in      25 Apr 2003 00:59:00 -0000
***************
*** 771,776 ****
--- 771,778 ----
        $style_sheet = '';
        if (open(SHEET, $style_path)) {
                while (<SHEET>) {
+                       # insert \t for gtags --write command.
+                       $style_sheet .= "\t" if (! /^[\t<]/);
                        $style_sheet .= $_;
                }
                close(SHEET);
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]