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

Bug#247654: tetex-bin: makeindex: Usage message is missing an option



Package: tetex-bin
Version: 2.0.2-13
Severity: minor

First of all, does anybody know who's currently upstream for
makeindex, and whether he/she can be reached by E-mail? Thomas? 


Michael Wiedmann <mw@miwie.in-berlin.de> wrote (in the list, but not
in the BTS):

> Can someone please explain me why I observe the following behaviour
> of "makeindex":

Seems to be a bug in mkind.h.

> - according to makeindex(1) there is an option "-L" which sorts based
>   on the current locale setting and which depends on HAVE_SETLOCALE at
>   compile time (if present uses "strcoll()" for string comparison
>   instead of internal functions and "strcmp()").
>
> - "makeindex -h" shows:
>   Usage: makeindex [-ilqrcg] [-s sty] [-o ind] [-t log] [-p num] \
>    [idx0 idx1 ...]
>   (note: no option "-L")

Which is generated in mkind.h with 

#ifdef HAVE_SETLOCALE
#define USAGE \
   "Usage: %s [-ilqrcg] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]\n"
#else
#define USAGE \
   "Usage: %s [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]\n"
#endif

In mkind.c, however, the -L option is made known with

#ifdef HAVE_SETLOCALE
		    /* enable locale-based sort */
		case 'L':
		    locale_sort = TRUE;
		    break;

		    /* enable Thai sort */
		case 'T':
		    thai_sort = locale_sort = TRUE;
		    break;
#endif


That is, the usage messages are switched: -L is displayed only when it
cannot be used... 

> So, is "makeindex" in the Debian package compiled with "-L" enabled 
> or not? 

As far as I can tell from this information, it is compiled with -L
enabled. 

Regards, Frank

-- System Information
Debian Release: 3.0-bunk-2
Architecture: i386
Kernel: Linux alhambra 2.4.25 #1 Mit Feb 18 16:41:07 CET 2004 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

Versions of packages tetex-bin depends on:
ii  debconf                1.2.34            Debian configuration management sy
ii  debianutils            2.5.4             Miscellaneous utilities specific t
ii  dpkg                   1.9.21            Package maintenance system for Deb
ii  ed                     0.2-19            The classic unix line editor
ii  libc6                  2.2.5-11.5        GNU C Library: Shared libraries an
ii  libkpathsea3           2.0.2-14          path search library for teTeX (run
ii  libpaperg              1.1.8             Library for handling paper charact
ii  libpng12-0             1.2.5.0-4         PNG library - runtime
ii  libstdc++2.10-glibc2.2 1:2.95.4-11woody1 The GNU stdc++ library
ii  libt1-5                5.0.0-4           Type 1 font rasterizer library - r
ii  libwww0                5.4.0-9           The W3C WWW library
ii  libxaw7                4.2.1-3.bunk.10   X Athena widget set library
ii  mime-support           3.18-1.3          MIME files 'mime.types' & 'mailcap
ii  perl                   5.6.1-8.7         Larry Wall's Practical Extraction 
ii  sed                    4.0.9-0.bunk      The GNU sed stream editor
ii  tetex-base             2.0.2-8.1         Basic library files of teTeX
ii  ucf                    1.06              Update Configuration File: preserv
ii  xlibs                  4.2.1-3.bunk.10   X Window System client libraries
ii  zlib1g                 1:1.1.4-1.0woody0 compression library - runtime



Reply to: