]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Change quoting style from `...' to '...'.
authorJia Tan <jiat0218@gmail.com>
Sun, 24 Sep 2023 14:10:18 +0000 (22:10 +0800)
committerJia Tan <jiat0218@gmail.com>
Sun, 24 Sep 2023 14:10:18 +0000 (22:10 +0800)
src/xz/args.c
src/xz/file_io.c
src/xz/main.c
src/xz/message.c
src/xz/options.c
src/xz/suffix.c
src/xz/util.c

index 2732ae08b2b6147cd30cc0ec1462ab6c6afe0447..8b481c93bdd80d1fc9d3cf1ce6d2bee92c45f37c 100644 (file)
@@ -124,7 +124,7 @@ parse_block_list(const char *str_const)
                        if (str[2] == '\0')
                                message_fatal(_("In --block-list, block "
                                                "size is missing after "
-                                               "filter chain number `%c:'"),
+                                               "filter chain number '%c:'"),
                                                str[0]);
 
                        int filter_num = str[0] - '0';
@@ -598,8 +598,8 @@ parse_real(args_info *args, int argc, char **argv)
                case OPT_FILES0:
                        if (args->files_name != NULL)
                                message_fatal(_("Only one file can be "
-                                               "specified with `--files' "
-                                               "or `--files0'."));
+                                               "specified with '--files' "
+                                               "or '--files0'."));
 
                        if (optarg == NULL) {
                                args->files_name = stdin_filename;
index e6e4f1584d8b932823f537da493996dec6e755ad..55652c537eddc080134384c2b37b9a07e16dd18a 100644 (file)
@@ -433,7 +433,7 @@ io_copy_attrs(const file_pair *pair)
                message_warning(_("%s: Cannot set the file group: %s"),
                                pair->dest_name, strerror(errno));
                // 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.
                //
                // NOTE: After this, the owner of the source file may
index c9c3deca2bf87749e84b709a78eb825e98daf063..f0c2194ce3d3bdce9c2a3118a897f2a05341c4bd 100644 (file)
@@ -119,8 +119,8 @@ read_name(const args_info *args)
                        // newlines.
                        message_error(_("%s: Null character found when "
                                        "reading filenames; maybe you meant "
-                                       "to use `--files0' instead "
-                                       "of `--files'?"), args->files_name);
+                                       "to use '--files0' instead "
+                                       "of '--files'?"), args->files_name);
                        return NULL;
                }
 
index 056ba5ea372d8d277e4c8d4be8f48ad7185efff4..c2a5d33d038d13ef9ab56c988b1bcdb940a287e4 100644 (file)
@@ -938,7 +938,7 @@ message_try_help(void)
 {
        // Print this with V_WARNING instead of V_ERROR to prevent it from
        // 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);
        return;
 }
@@ -1000,7 +1000,7 @@ message_help(bool long_help)
 "                      ignore possible remaining input data"));
                puts(_(
 "      --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"
 "                      omitted, filenames are read from the standard input;\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(_(
 "  -F, --format=FMT    file format to encode or decode; possible values are\n"
-"                      `auto' (default), `xz', `lzma', `lzip', and `raw'\n"
-"  -C, --check=CHECK   integrity check type: `none' (use with caution),\n"
-"                      `crc32', `crc64' (default), or `sha256'"));
+"                      'auto' (default), 'xz', 'lzma', 'lzip', and 'raw'\n"
+"  -C, --check=CHECK   integrity check type: 'none' (use with caution),\n"
+"                      'crc32', 'crc64' (default), or 'sha256'"));
                puts(_(
 "      --ignore-check  don't verify the integrity check when decompressing"));
        }
@@ -1039,7 +1039,7 @@ message_help(bool long_help)
 "      --block-list=BLOCKS\n"
 "                      start a new .xz block after the given comma-separated\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"));
                puts(_(
 "      --flush-timeout=TIMEOUT\n"
@@ -1183,7 +1183,7 @@ message_filters_help(void)
                puts(_(
 "Filter chains are set using the --filters=FILTERS or\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"
                ));
 
index 4d5e899ccdc183a2019fc5862b8b330f4a2731a5..618a50f7a49124e3458a1763b5c06f54213b06be 100644 (file)
@@ -83,7 +83,7 @@ parse_options(const char *str, const option_map *opts,
                        *value++ = '\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);
 
                // Look for the option name from the option map.
index 2df2b8c8bf843e05e892cf3f09d08062b542fb1f..f2541831e3543f7a5c187e16fb0a46460feaeea5 100644 (file)
@@ -184,7 +184,7 @@ uncompressed_name(const char *src_name, const size_t src_len)
 static void
 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);
        return;
 }
index df6fd709768d00340acc6a3e0c3a4add419ef683..45d3085ec3099db0b0dfe75f45f08735d42edf12 100644 (file)
@@ -153,8 +153,8 @@ str_to_uint64(const char *name, const char *value, uint64_t min, uint64_t max)
                if (multiplier == 0) {
                        message(V_ERROR, _("%s: Invalid multiplier suffix"),
                                        value - 1);
-                       message_fatal(_("Valid suffixes are `KiB' (2^10), "
-                                       "`MiB' (2^20), and `GiB' (2^30)."));
+                       message_fatal(_("Valid suffixes are 'KiB' (2^10), "
+                                       "'MiB' (2^20), and 'GiB' (2^30)."));
                }
 
                // 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;
 
 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 "]"),
                                name, min, max);
 }