Skip to content

Commit 13e423c

Browse files
committed
Merge branch 'master' into build/work000 r76026 #158
2 parents 8f8f61b + cbf25b7 commit 13e423c

36 files changed

+234
-186
lines changed

source/configure

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -840,10 +840,7 @@ enable_tex
840840
enable_tex_synctex
841841
enable_etex
842842
enable_etex_synctex
843-
enable_ptex
844-
enable_ptex_synctex
845843
enable_uptex
846-
enable_uptex_synctex
847844
enable_euptex
848845
enable_euptex_synctex
849846
enable_aleph
@@ -1667,10 +1664,7 @@ Optional Features:
16671664
--enable-tex-synctex build TeX with SyncTeX support
16681665
--enable-etex compile and install e-TeX
16691666
--disable-etex-synctex build e-TeX without SyncTeX support
1670-
--enable-ptex compile and install pTeX
1671-
--disable-ptex-synctex build pTeX without SyncTeX support
16721667
--enable-uptex compile and install upTeX
1673-
--disable-uptex-synctex build upTeX without SyncTeX support
16741668
--disable-euptex do not compile and install e-upTeX
16751669
--disable-euptex-synctex build e-upTeX without SyncTeX support
16761670
--disable-aleph do not compile and install Aleph
@@ -5808,28 +5802,6 @@ fi
58085802
test "x$enable_web2c:$enable_etex" = xyes:yes && {
58095803
need_zlib=yes
58105804
}
5811-
# Check whether --enable-ptex was given.
5812-
if test ${enable_ptex+y}
5813-
then :
5814-
enableval=$enable_ptex;
5815-
fi
5816-
case $enable_ptex in #(
5817-
yes | no) :
5818-
;; #(
5819-
*) :
5820-
enable_ptex=no ;;
5821-
esac
5822-
5823-
# Check whether --enable-ptex-synctex was given.
5824-
if test ${enable_ptex_synctex+y}
5825-
then :
5826-
enableval=$enable_ptex_synctex;
5827-
fi
5828-
5829-
test "x$enable_web2c:$enable_ptex" = xyes:yes && {
5830-
need_ptexenc=yes
5831-
need_zlib=yes
5832-
}
58335805
# Check whether --enable-uptex was given.
58345806
if test ${enable_uptex+y}
58355807
then :
@@ -5842,12 +5814,6 @@ case $enable_uptex in #(
58425814
enable_uptex=no ;;
58435815
esac
58445816

5845-
# Check whether --enable-uptex-synctex was given.
5846-
if test ${enable_uptex_synctex+y}
5847-
then :
5848-
enableval=$enable_uptex_synctex;
5849-
fi
5850-
58515817
test "x$enable_web2c:$enable_uptex" = xyes:yes && {
58525818
need_ptexenc=yes
58535819
need_zlib=yes

source/texk/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ ttf2pk2 - maintained here, by us
110110

111111
ttfdump - maintained here, by us, since Taiwan upstream apparently gone.
112112

113-
upmendex 1.20 - by Takuji Tanaka
113+
upmendex 1.21 - by Takuji Tanaka
114114
https://ctan.org/pkg/upmendex
115115
https://github.com/t-tk/upmendex-package
116116

source/texk/configure

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -783,10 +783,7 @@ enable_tex
783783
enable_tex_synctex
784784
enable_etex
785785
enable_etex_synctex
786-
enable_ptex
787-
enable_ptex_synctex
788786
enable_uptex
789-
enable_uptex_synctex
790787
enable_euptex
791788
enable_euptex_synctex
792789
enable_aleph
@@ -1585,10 +1582,7 @@ Optional Features:
15851582
--enable-tex-synctex build TeX with SyncTeX support
15861583
--enable-etex compile and install e-TeX
15871584
--disable-etex-synctex build e-TeX without SyncTeX support
1588-
--enable-ptex compile and install pTeX
1589-
--disable-ptex-synctex build pTeX without SyncTeX support
15901585
--enable-uptex compile and install upTeX
1591-
--disable-uptex-synctex build upTeX without SyncTeX support
15921586
--disable-euptex do not compile and install e-upTeX
15931587
--disable-euptex-synctex build e-upTeX without SyncTeX support
15941588
--disable-aleph do not compile and install Aleph
@@ -4930,28 +4924,6 @@ fi
49304924
test "x$enable_web2c:$enable_etex" = xyes:yes && {
49314925
need_zlib=yes
49324926
}
4933-
# Check whether --enable-ptex was given.
4934-
if test ${enable_ptex+y}
4935-
then :
4936-
enableval=$enable_ptex;
4937-
fi
4938-
case $enable_ptex in #(
4939-
yes | no) :
4940-
;; #(
4941-
*) :
4942-
enable_ptex=no ;;
4943-
esac
4944-
4945-
# Check whether --enable-ptex-synctex was given.
4946-
if test ${enable_ptex_synctex+y}
4947-
then :
4948-
enableval=$enable_ptex_synctex;
4949-
fi
4950-
4951-
test "x$enable_web2c:$enable_ptex" = xyes:yes && {
4952-
need_ptexenc=yes
4953-
need_zlib=yes
4954-
}
49554927
# Check whether --enable-uptex was given.
49564928
if test ${enable_uptex+y}
49574929
then :
@@ -4964,12 +4936,6 @@ case $enable_uptex in #(
49644936
enable_uptex=no ;;
49654937
esac
49664938
4967-
# Check whether --enable-uptex-synctex was given.
4968-
if test ${enable_uptex_synctex+y}
4969-
then :
4970-
enableval=$enable_uptex_synctex;
4971-
fi
4972-
49734939
test "x$enable_web2c:$enable_uptex" = xyes:yes && {
49744940
need_ptexenc=yes
49754941
need_zlib=yes

source/texk/mendexk/ChangeLog

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
2025-08-11 TANAKA Takuji <[email protected]>
2+
3+
* configure.ac, version.h:
4+
Version 3.9 [11-Aug-2025].
5+
* fwrite.c: Fix bug on page range.
6+
Thanks to @pejsek02468.
7+
https://github.com/t-tk/upmendex-package/issues/15
8+
* fread.c, convert.c:
9+
Avoid segmentation fault about page_compositor and page_precedence.
10+
Thanks to Lemures Lemniscati.
11+
https://okumuralab.org/tex/mod/forum/discuss.php?d=3976#p24754
12+
https://github.com/texjporg/tex-jp-build/issues/181
13+
* tests/pprec.test, tests/range.idx,
14+
tests/range4.ist, tests/range{1,2,3,4}.ind:
15+
Add tests for page range.
16+
* Makefile.am: Adjust.
17+
118
2025-03-07 Karl Berry <[email protected]>
219

320
* TL'25 release.

source/texk/mendexk/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ EXTRA_DIST += tests/foo.idx tests/foo.ind \
6767
DISTCLEANFILES = foo.* uni.* tort*.*
6868
## tests/pprec.test
6969
EXTRA_DIST += tests/range.idx \
70-
tests/range1.ist tests/range2.ist tests/range3.ist \
71-
tests/range1.ind tests/range2.ind tests/range3.ind \
70+
tests/range1.ist tests/range2.ist tests/range3.ist tests/range4.ist \
71+
tests/range1.ind tests/range2.ind tests/range3.ind tests/range4.ind \
7272
tests/pprec0.ist tests/pprec1.ist tests/pprec2.ist tests/pprec3.ist \
7373
tests/pprec4.ist tests/pprec5.ist tests/pprec6.ist tests/pprec7.ist \
7474
tests/pprecA.idx tests/pprecA-0.ind tests/pprecA-1.ind tests/pprecA-2.ind \

source/texk/mendexk/Makefile.in

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -598,21 +598,22 @@ EXTRA_DIST = COPYRIGHT COPYRIGHT.ja ChangeLog.ja indexsty \
598598
tests/uni1.ist tests/uni2.ist tests/uni.ind tests/tort.idx \
599599
tests/tortW.idx tests/head1.ist tests/ok-tort.ind \
600600
tests/ok-tort2.ind tests/range.idx tests/range1.ist \
601-
tests/range2.ist tests/range3.ist tests/range1.ind \
602-
tests/range2.ind tests/range3.ind tests/pprec0.ist \
603-
tests/pprec1.ist tests/pprec2.ist tests/pprec3.ist \
604-
tests/pprec4.ist tests/pprec5.ist tests/pprec6.ist \
605-
tests/pprec7.ist tests/pprecA.idx tests/pprecA-0.ind \
606-
tests/pprecA-1.ind tests/pprecA-2.ind tests/pprecB.idx \
607-
tests/pprecB-0.ind tests/pprecB-3.ind tests/pprecB-4.ind \
608-
tests/romalpA.idx tests/romalpA-5.ind tests/romalpA-6.ind \
609-
tests/romalpB.idx tests/romalpB-5.ind tests/romalpB-6.ind \
610-
tests/romalpB-7.ind tests/romalpC.idx tests/romalpC-5.ind \
611-
tests/romalpD.idx tests/romalpD-5.ind tests/romalpD-6.ind \
612-
tests/romalpD-7.ind tests/nested3.ist tests/nested3.ind \
613-
tests/toodeep.idx tests/sjis.ist tests/euc.ist tests/jis.ist \
614-
tests/enc-e.idx tests/enc-j.idx tests/enc-s.idx \
615-
tests/enc-u.idx tests/enc-x.ind tests/enc.dic
601+
tests/range2.ist tests/range3.ist tests/range4.ist \
602+
tests/range1.ind tests/range2.ind tests/range3.ind \
603+
tests/range4.ind tests/pprec0.ist tests/pprec1.ist \
604+
tests/pprec2.ist tests/pprec3.ist tests/pprec4.ist \
605+
tests/pprec5.ist tests/pprec6.ist tests/pprec7.ist \
606+
tests/pprecA.idx tests/pprecA-0.ind tests/pprecA-1.ind \
607+
tests/pprecA-2.ind tests/pprecB.idx tests/pprecB-0.ind \
608+
tests/pprecB-3.ind tests/pprecB-4.ind tests/romalpA.idx \
609+
tests/romalpA-5.ind tests/romalpA-6.ind tests/romalpB.idx \
610+
tests/romalpB-5.ind tests/romalpB-6.ind tests/romalpB-7.ind \
611+
tests/romalpC.idx tests/romalpC-5.ind tests/romalpD.idx \
612+
tests/romalpD-5.ind tests/romalpD-6.ind tests/romalpD-7.ind \
613+
tests/nested3.ist tests/nested3.ind tests/toodeep.idx \
614+
tests/sjis.ist tests/euc.ist tests/jis.ist tests/enc-e.idx \
615+
tests/enc-j.idx tests/enc-s.idx tests/enc-u.idx \
616+
tests/enc-x.ind tests/enc.dic
616617
TESTS = tests/mendex.test \
617618
tests/pprec.test \
618619
tests/nest.test \

source/texk/mendexk/configure

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.72 for mendex (TeX Live) 3.8.
3+
# Generated by GNU Autoconf 2.72 for mendex (TeX Live) 3.9.
44
#
55
#
66
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
@@ -611,8 +611,8 @@ MAKEFLAGS=
611611
# Identity of this package.
612612
PACKAGE_NAME='mendex (TeX Live)'
613613
PACKAGE_TARNAME='mendex--tex-live-'
614-
PACKAGE_VERSION='3.8'
615-
PACKAGE_STRING='mendex (TeX Live) 3.8'
614+
PACKAGE_VERSION='3.9'
615+
PACKAGE_STRING='mendex (TeX Live) 3.9'
616616
PACKAGE_BUGREPORT=''
617617
PACKAGE_URL=''
618618

@@ -1366,7 +1366,7 @@ if test "$ac_init_help" = "long"; then
13661366
# Omit some internal or obsolete options to make the list less imposing.
13671367
# This message is too long to be a string in the A/UX 3.1 sh.
13681368
cat <<_ACEOF
1369-
'configure' configures mendex (TeX Live) 3.8 to adapt to many kinds of systems.
1369+
'configure' configures mendex (TeX Live) 3.9 to adapt to many kinds of systems.
13701370

13711371
Usage: $0 [OPTION]... [VAR=VALUE]...
13721372

@@ -1438,7 +1438,7 @@ fi
14381438

14391439
if test -n "$ac_init_help"; then
14401440
case $ac_init_help in
1441-
short | recursive ) echo "Configuration of mendex (TeX Live) 3.8:";;
1441+
short | recursive ) echo "Configuration of mendex (TeX Live) 3.9:";;
14421442
esac
14431443
cat <<\_ACEOF
14441444

@@ -1560,7 +1560,7 @@ fi
15601560
test -n "$ac_init_help" && exit $ac_status
15611561
if $ac_init_version; then
15621562
cat <<\_ACEOF
1563-
mendex (TeX Live) configure 3.8
1563+
mendex (TeX Live) configure 3.9
15641564
generated by GNU Autoconf 2.72
15651565

15661566
Copyright (C) 2023 Free Software Foundation, Inc.
@@ -2102,7 +2102,7 @@ cat >config.log <<_ACEOF
21022102
This file contains any messages produced by compilers while
21032103
running configure, to aid debugging if configure makes a mistake.
21042104

2105-
It was created by mendex (TeX Live) $as_me 3.8, which was
2105+
It was created by mendex (TeX Live) $as_me 3.9, which was
21062106
generated by GNU Autoconf 2.72. Invocation command line was
21072107

21082108
$ $0$ac_configure_args_raw
@@ -9001,7 +9001,7 @@ fi
90019001

90029002
# Define the identity of the package.
90039003
PACKAGE='mendex--tex-live-'
9004-
VERSION='3.8'
9004+
VERSION='3.9'
90059005

90069006

90079007
# Some tools Automake needs.
@@ -16109,7 +16109,7 @@ Usage: $0 [OPTIONS]
1610916109
Report bugs to <[email protected]>."
1611016110

1611116111
lt_cl_version="\
16112-
mendex (TeX Live) config.lt 3.8
16112+
mendex (TeX Live) config.lt 3.9
1611316113
configured by $0, generated by GNU Autoconf 2.72.
1611416114

1611516115
Copyright (C) 2024 Free Software Foundation, Inc.
@@ -17143,10 +17143,6 @@ ${top_builddir}/../kpathsea/paths.h:
1714317143
cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild'
1714417144
fi
1714517145

17146-
17147-
17148-
17149-
1715017146
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5
1715117147
printf %s "checking if libkpathsea supports debugging... " >&6; }
1715217148
if test ${kpse_cv_kpse_debug+y}
@@ -17214,10 +17210,6 @@ $(PTEXENC_DEPEND): ${top_srcdir}/../ptexenc/*.c ${top_srcdir}/../ptexenc/ptexenc
1721417210
fi
1721517211

1721617212

17217-
17218-
17219-
17220-
1722117213
ac_config_files="$ac_config_files Makefile"
1722217214

1722317215

@@ -17769,7 +17761,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1776917761
# report actual input values of CONFIG_FILES etc. instead of their
1777017762
# values after options handling.
1777117763
ac_log="
17772-
This file was extended by mendex (TeX Live) $as_me 3.8, which was
17764+
This file was extended by mendex (TeX Live) $as_me 3.9, which was
1777317765
generated by GNU Autoconf 2.72. Invocation command line was
1777417766

1777517767
CONFIG_FILES = $CONFIG_FILES
@@ -17837,7 +17829,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
1783717829
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1783817830
ac_cs_config='$ac_cs_config_escaped'
1783917831
ac_cs_version="\\
17840-
mendex (TeX Live) config.status 3.8
17832+
mendex (TeX Live) config.status 3.9
1784117833
configured by $0, generated by GNU Autoconf 2.72,
1784217834
with options \\"\$ac_cs_config\\"
1784317835

source/texk/mendexk/configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dnl This file is free software; the copyright holder
88
dnl gives unlimited permission to copy and/or distribute it,
99
dnl with or without modifications, as long as this notice is preserved.
1010
dnl
11-
AC_INIT([mendex (TeX Live)], [3.8])
11+
AC_INIT([mendex (TeX Live)], [3.9])
1212
AC_PREREQ([2.71])
1313
AC_CONFIG_SRCDIR([main.c])
1414
AC_CONFIG_AUX_DIR([../../build-aux])

source/texk/mendexk/convert.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ int pnumconv(char *page, int attr)
369369
{
370370
int i,cc=0;
371371

372+
if (attr<0) return 0; /* inappropriate page type */
372373
switch (page_precedence[attr]) {
373374
case 'a':
374375
cc=page[0]-'a'+1;

source/texk/mendexk/fread.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int idxread(char *filename, int start)
7777
}
7878
indent=wflg=k=nest=esc=quo=0;
7979

80-
/* analize words */
80+
/* analyze words */
8181

8282
for (;;j++,k++) {
8383
if (buff[j]=='\n' || buff[j]=='\0') {
@@ -501,8 +501,7 @@ static void chkpageattr(struct page *p)
501501
else {
502502
cnt=0;
503503
if (!((*page0>='0' && *page0<='9') || (*page0>='A' && *page0<='Z') || (*page0>='a' && *page0<='z'))) {
504-
p->attr[cc]= -1;
505-
if (cc<2) p->attr[++cc]= -1;
504+
for (j=cc;j<PAGE_COMPOSIT_DEPTH;j++) p->attr[j]=-1;
506505
return;
507506
}
508507
pcpos=strstr(page0,page_compositor);
@@ -588,7 +587,7 @@ static void chkpageattr(struct page *p)
588587
}
589588
}
590589
p->attr[cc]=pattr[cc];
591-
if (cc<2) p->attr[++cc]= -1;
590+
for (j=cc+1;j<PAGE_COMPOSIT_DEPTH;j++) p->attr[j]=-1;
592591
}
593592

594593
char *mfgets(char *buf, int size, FILE *fp)

0 commit comments

Comments
 (0)