summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorTakuji Tanaka <ttk@t-lab.opal.ne.jp>2021-06-19 01:34:13 +0000
committerTakuji Tanaka <ttk@t-lab.opal.ne.jp>2021-06-19 01:34:13 +0000
commit4baeaae16bee7c71b1c5aa73437aa7e479d35345 (patch)
tree8ffdca3ee570a908c067d88344b0e84ab4976e58 /Build
parent9453e4ceaf6733aa85201003eedc1e8b6b8e54ca (diff)
upmendex: Add ICU version to banner
git-svn-id: svn://tug.org/texlive/trunk@59634 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/upmendex/ChangeLog1
-rw-r--r--Build/source/texk/upmendex/main.c12
2 files changed, 7 insertions, 6 deletions
diff --git a/Build/source/texk/upmendex/ChangeLog b/Build/source/texk/upmendex/ChangeLog
index 6a86c90e57d..73275eebdc7 100644
--- a/Build/source/texk/upmendex/ChangeLog
+++ b/Build/source/texk/upmendex/ChangeLog
@@ -4,6 +4,7 @@
in some envirionment.
Report from Vadmin Kantorov,
https://github.com/t-tk/upmendex-package/issues/1
+ * main.c: Add ICU version to banner.
2021-06-13 TANAKA Takuji <ttk@t-lab.opal.ne.jp>
diff --git a/Build/source/texk/upmendex/main.c b/Build/source/texk/upmendex/main.c
index f96ae8ff544..2a2b2cb78b6 100644
--- a/Build/source/texk/upmendex/main.c
+++ b/Build/source/texk/upmendex/main.c
@@ -33,6 +33,8 @@ int main(int argc, char **argv)
_setmaxstdio(2048);
#endif
kpse_set_program_name(argv[0], "upmendex");
+ u_getVersion(icuVersion);
+ u_versionToString(icuVersion, icu_version);
#ifdef WIN32
file_system_codepage = CP_UTF8;
@@ -157,8 +159,6 @@ int main(int argc, char **argv)
if (strcmp(argv[i],"--help")!=0) break;
default:
- u_getVersion(icuVersion);
- u_versionToString(icuVersion, icu_version);
fprintf(stderr,"upmendex - index processor, %s (%s).\n",VERSION, TL_VERSION);
fprintf(stderr," Copyright 2009 ASCII MEDIA WORKS, 2015-2021 TANAKA Takuji\n");
fprintf(stderr," using ICU version %s\n",icu_version);
@@ -233,12 +233,12 @@ int main(int argc, char **argv)
}
if (strcmp(argv[0],"makeindex")==0) {
- verb_printf(efp,"This is Not `MAKEINDEX\', But `UPMENDEX\' %s (%s).\n",
- VERSION, TL_VERSION);
+ verb_printf(efp,"This is Not `MAKEINDEX\', But `UPMENDEX\' %s [ICU %s] (%s).\n",
+ VERSION, icu_version, TL_VERSION);
}
else {
- verb_printf(efp,"This is upmendex %s (%s).\n",
- VERSION, TL_VERSION);
+ verb_printf(efp,"This is upmendex %s [ICU %s] (%s).\n",
+ VERSION, icu_version, TL_VERSION);
}
/* init kanatable */