bug-groff
[Top][All Lists]
Advanced

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

`preconv --version' says "without iconv support" when the iconv support


From: Tetsurou Okazaki
Subject: `preconv --version' says "without iconv support" when the iconv support is configured.
Date: Sun, 23 Apr 2006 20:45:11 -0400
User-agent: Wanderlust/2.15.2 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (Sanjō) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI)

GROFF VERSION:
1.19.3 (CVS HEAD)

MACHINE:
unknown

OS:
FreeBSD 4.10-STABLE

COMPILER:
GCC 2.95.4

INPUT FILES:
none

COMMAND LINE:
preconv --version

DESCRIPTION OF INCORRECT BEHAVIOUR:
`preconv --version' says "without iconv support" when the iconv support is 
configured.
  $ ./src/preproc/preconv/preconv --version
  GNU preconv (groff) version 1.19.3 without iconv support

  $ ldd ./src/preproc/preconv/preconv
  ./src/preproc/preconv/preconv:
   libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x2806d000)
   libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x2815a000)
   libm.so.2 => /usr/lib/libm.so.2 (0x2819f000)
   libc.so.4 => /usr/lib/libc.so.4 (0x281ba000)

SUGGESTED FIX:

Index: src/preproc/preconv/preconv.cpp
===================================================================
RCS file: /cvsroot/groff/groff/src/preproc/preconv/preconv.cpp,v
retrieving revision 1.11
diff -u -c -r1.11 preconv.cpp
*** src/preproc/preconv/preconv.cpp     23 Feb 2006 20:07:25 -0000      1.11
--- src/preproc/preconv/preconv.cpp     23 Apr 2006 23:09:40 -0000
***************
*** 1074,1080 ****
  #else
      error("encoding system `%1' not supported", encoding);
      success = 0;
! #endif /* I18N */
    }
    if (fp != stdin)
      fclose(fp);
--- 1074,1080 ----
  #else
      error("encoding system `%1' not supported", encoding);
      success = 0;
! #endif /* HAVE_ICONV */
    }
    if (fp != stdin)
      fclose(fp);
***************
*** 1130,1140 ****
      case 'v':
        printf("GNU preconv (groff) version %s %s iconv support\n",
             Version_string,
! #ifdef I18N
             "with"
  #else
             "without"
! #endif /* I18N */
            );
        exit(0);
        break;
--- 1130,1140 ----
      case 'v':
        printf("GNU preconv (groff) version %s %s iconv support\n",
             Version_string,
! #ifdef HAVE_ICONV
             "with"
  #else
             "without"
! #endif /* HAVE_ICONV */
            );
        exit(0);
        break;




reply via email to

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