From f13286f198643173f20f530481a5de0e71df70d2 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Sun, 19 Feb 2023 09:11:47 +0100 Subject: [PATCH] testdisk, photorec: report iconv usage --- configure.ac | 2 +- src/phmain.c | 5 +++++ src/testdisk.c | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index f1989b58..b115344c 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ AC_INIT([testdisk],[7.2-WIP],[grenier@cgsecurity.org]) AC_LANG(C) sinclude(acx_pthread.m4) sinclude(mkdir.m4) -TESTDISKDATE="January 2023" +TESTDISKDATE="February 2023" AC_SUBST(TESTDISKDATE) AC_DEFINE_UNQUOTED([TESTDISKDATE],"$TESTDISKDATE",[Date of release]) AC_CONFIG_AUX_DIR(config) diff --git a/src/phmain.c b/src/phmain.c index e7a68068..f336286a 100644 --- a/src/phmain.c +++ b/src/phmain.c @@ -144,6 +144,11 @@ static void display_version(void) #endif printf("ext2fs lib: %s, ntfs lib: %s, ewf lib: %s, libjpeg: %s, curses lib: %s, zlib: %s\n", td_ext2fs_version(), td_ntfs_version(), td_ewf_version(), td_jpeg_version(), td_curses_version(), td_zlib_version()); +#ifdef HAVE_ICONV + printf("iconv support: yes\n"); +#else + printf("iconv support: no\n"); +#endif printf("OS: %s\n" , get_os()); } #endif diff --git a/src/testdisk.c b/src/testdisk.c index cd4f7ae1..78f5523b 100644 --- a/src/testdisk.c +++ b/src/testdisk.c @@ -134,6 +134,11 @@ static void display_version(void) #endif printf("ext2fs lib: %s, ntfs lib: %s, reiserfs lib: %s, ewf lib: %s, curses lib: %s\n", td_ext2fs_version(), td_ntfs_version(), td_reiserfs_version(), td_ewf_version(), td_curses_version()); +#ifdef HAVE_ICONV + printf("iconv support: yes\n"); +#else + printf("iconv support: no\n"); +#endif printf("OS: %s\n" , get_os()); }