src/common/sysdefs.h
src/common/tuklib_common.h
src/common/tuklib_config.h
+ src/common/tuklib_mbstr_nonprint.c
+ src/common/tuklib_mbstr_nonprint.h
src/common/tuklib_exit.c
src/common/tuklib_exit.h
src/common/tuklib_gettext.h
endif()
tuklib_progname(lzmainfo)
+ tuklib_mbstr(lzmainfo)
# NOTE: The translations are in the "xz" domain and the .mo files are
# installed as part of the "xz" target.
#include "getopt.h"
#include "tuklib_gettext.h"
#include "tuklib_progname.h"
+#include "tuklib_mbstr_nonprint.h"
#include "tuklib_exit.h"
#ifdef TUKLIB_DOSLIKE
uint8_t buf[13];
const size_t size = fread(buf, 1, sizeof(buf), f);
if (size != 13) {
- fprintf(stderr, "%s: %s: %s\n", progname, name,
+ fprintf(stderr, "%s: %s: %s\n", progname,
+ tuklib_mask_nonprint(name),
ferror(f) ? strerror(errno)
: _("File is too small to be a .lzma file"));
return true;
break;
case LZMA_OPTIONS_ERROR:
- fprintf(stderr, "%s: %s: %s\n", progname, name,
+ fprintf(stderr, "%s: %s: %s\n", progname,
+ tuklib_mask_nonprint(name),
_("Not a .lzma file"));
return true;
// this output and we don't want to break that when people move
// from LZMA Utils to XZ Utils.
if (f != stdin)
- printf("%s\n", name);
+ printf("%s\n", tuklib_mask_nonprint(name));
printf("Uncompressed size: ");
if (uncompressed_size == UINT64_MAX)
if (f == NULL) {
ret = EXIT_FAILURE;
fprintf(stderr, "%s: %s: %s\n",
- progname,
- argv[optind],
- strerror(errno));
+ progname,
+ tuklib_mask_nonprint(
+ argv[optind]),
+ strerror(errno));
continue;
}