1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

xz: Change quoting style from `...' to '...'.

This commit is contained in:
Jia Tan 2023-09-24 22:10:18 +08:00
parent f6667702bf
commit eaebdef4d4
7 changed files with 18 additions and 18 deletions

View file

@ -124,7 +124,7 @@ parse_block_list(const char *str_const)
if (str[2] == '\0') if (str[2] == '\0')
message_fatal(_("In --block-list, block " message_fatal(_("In --block-list, block "
"size is missing after " "size is missing after "
"filter chain number `%c:'"), "filter chain number '%c:'"),
str[0]); str[0]);
int filter_num = str[0] - '0'; int filter_num = str[0] - '0';
@ -598,8 +598,8 @@ parse_real(args_info *args, int argc, char **argv)
case OPT_FILES0: case OPT_FILES0:
if (args->files_name != NULL) if (args->files_name != NULL)
message_fatal(_("Only one file can be " message_fatal(_("Only one file can be "
"specified with `--files' " "specified with '--files' "
"or `--files0'.")); "or '--files0'."));
if (optarg == NULL) { if (optarg == NULL) {
args->files_name = stdin_filename; args->files_name = stdin_filename;

View file

@ -433,7 +433,7 @@ io_copy_attrs(const file_pair *pair)
message_warning(_("%s: Cannot set the file group: %s"), message_warning(_("%s: Cannot set the file group: %s"),
pair->dest_name, strerror(errno)); pair->dest_name, strerror(errno));
// We can still safely copy some additional permissions: // We can still safely copy some additional permissions:
// `group' must be at least as strict as `other' and // 'group' must be at least as strict as 'other' and
// also vice versa. // also vice versa.
// //
// NOTE: After this, the owner of the source file may // NOTE: After this, the owner of the source file may

View file

@ -119,8 +119,8 @@ read_name(const args_info *args)
// newlines. // newlines.
message_error(_("%s: Null character found when " message_error(_("%s: Null character found when "
"reading filenames; maybe you meant " "reading filenames; maybe you meant "
"to use `--files0' instead " "to use '--files0' instead "
"of `--files'?"), args->files_name); "of '--files'?"), args->files_name);
return NULL; return NULL;
} }

View file

@ -938,7 +938,7 @@ message_try_help(void)
{ {
// Print this with V_WARNING instead of V_ERROR to prevent it from // Print this with V_WARNING instead of V_ERROR to prevent it from
// showing up when --quiet has been specified. // showing up when --quiet has been specified.
message(V_WARNING, _("Try `%s --help' for more information."), message(V_WARNING, _("Try '%s --help' for more information."),
progname); progname);
return; return;
} }
@ -1000,7 +1000,7 @@ message_help(bool long_help)
" ignore possible remaining input data")); " ignore possible remaining input data"));
puts(_( puts(_(
" --no-sparse do not create sparse files when decompressing\n" " --no-sparse do not create sparse files when decompressing\n"
" -S, --suffix=.SUF use the suffix `.SUF' on compressed files\n" " -S, --suffix=.SUF use the suffix '.SUF' on compressed files\n"
" --files[=FILE] read filenames to process from FILE; if FILE is\n" " --files[=FILE] read filenames to process from FILE; if FILE is\n"
" omitted, filenames are read from the standard input;\n" " omitted, filenames are read from the standard input;\n"
" filenames must be terminated with the newline character\n" " filenames must be terminated with the newline character\n"
@ -1011,9 +1011,9 @@ message_help(bool long_help)
puts(_("\n Basic file format and compression options:\n")); puts(_("\n Basic file format and compression options:\n"));
puts(_( puts(_(
" -F, --format=FMT file format to encode or decode; possible values are\n" " -F, --format=FMT file format to encode or decode; possible values are\n"
" `auto' (default), `xz', `lzma', `lzip', and `raw'\n" " 'auto' (default), 'xz', 'lzma', 'lzip', and 'raw'\n"
" -C, --check=CHECK integrity check type: `none' (use with caution),\n" " -C, --check=CHECK integrity check type: 'none' (use with caution),\n"
" `crc32', `crc64' (default), or `sha256'")); " 'crc32', 'crc64' (default), or 'sha256'"));
puts(_( puts(_(
" --ignore-check don't verify the integrity check when decompressing")); " --ignore-check don't verify the integrity check when decompressing"));
} }
@ -1039,7 +1039,7 @@ message_help(bool long_help)
" --block-list=BLOCKS\n" " --block-list=BLOCKS\n"
" start a new .xz block after the given comma-separated\n" " start a new .xz block after the given comma-separated\n"
" intervals of uncompressed data; optionally, specify a\n" " intervals of uncompressed data; optionally, specify a\n"
" filter chain number (0-9) followed by a `:' before the\n" " filter chain number (0-9) followed by a ':' before the\n"
" uncompressed data size")); " uncompressed data size"));
puts(_( puts(_(
" --flush-timeout=TIMEOUT\n" " --flush-timeout=TIMEOUT\n"
@ -1183,7 +1183,7 @@ message_filters_help(void)
puts(_( puts(_(
"Filter chains are set using the --filters=FILTERS or\n" "Filter chains are set using the --filters=FILTERS or\n"
"--filters1=FILTERS ... --filters9=FILTERS options. Each filter in the chain\n" "--filters1=FILTERS ... --filters9=FILTERS options. Each filter in the chain\n"
"can be separated by spaces or `--'. Alternatively a preset <0-9>[e] can be\n" "can be separated by spaces or '--'. Alternatively a preset <0-9>[e] can be\n"
"specified instead of a filter chain.\n" "specified instead of a filter chain.\n"
)); ));

View file

@ -83,7 +83,7 @@ parse_options(const char *str, const option_map *opts,
*value++ = '\0'; *value++ = '\0';
if (value == NULL || value[0] == '\0') if (value == NULL || value[0] == '\0')
message_fatal(_("%s: Options must be `name=value' " message_fatal(_("%s: Options must be 'name=value' "
"pairs separated with commas"), str); "pairs separated with commas"), str);
// Look for the option name from the option map. // Look for the option name from the option map.

View file

@ -184,7 +184,7 @@ uncompressed_name(const char *src_name, const size_t src_len)
static void static void
msg_suffix(const char *src_name, const char *suffix) msg_suffix(const char *src_name, const char *suffix)
{ {
message_warning(_("%s: File already has `%s' suffix, skipping"), message_warning(_("%s: File already has '%s' suffix, skipping"),
src_name, suffix); src_name, suffix);
return; return;
} }

View file

@ -153,8 +153,8 @@ str_to_uint64(const char *name, const char *value, uint64_t min, uint64_t max)
if (multiplier == 0) { if (multiplier == 0) {
message(V_ERROR, _("%s: Invalid multiplier suffix"), message(V_ERROR, _("%s: Invalid multiplier suffix"),
value - 1); value - 1);
message_fatal(_("Valid suffixes are `KiB' (2^10), " message_fatal(_("Valid suffixes are 'KiB' (2^10), "
"`MiB' (2^20), and `GiB' (2^30).")); "'MiB' (2^20), and 'GiB' (2^30)."));
} }
// Don't overflow here either. // Don't overflow here either.
@ -170,7 +170,7 @@ str_to_uint64(const char *name, const char *value, uint64_t min, uint64_t max)
return result; return result;
error: error:
message_fatal(_("Value of the option `%s' must be in the range " message_fatal(_("Value of the option '%s' must be in the range "
"[%" PRIu64 ", %" PRIu64 "]"), "[%" PRIu64 ", %" PRIu64 "]"),
name, min, max); name, min, max);
} }