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

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

These days the ` and ' do not look symmetric. This quoting style has
been changed in various apps over the years including the GNU tools.
This commit is contained in:
Jia Tan 2023-09-24 22:05:02 +08:00
parent db17656721
commit ce162db07f
3 changed files with 12 additions and 12 deletions

View file

@ -468,14 +468,14 @@ XZ Utils Installation
too. This is the default for 32-bit x86 too. This is the default for 32-bit x86
Windows builds. Unless the compiler Windows builds. Unless the compiler
supports __attribute__((__constructor__)), supports __attribute__((__constructor__)),
the `win95' threading is incompatible with the 'win95' threading is incompatible with
--enable-small. --enable-small.
vista Use Windows Vista compatible threads. The vista Use Windows Vista compatible threads. The
resulting binaries won't run on Windows XP resulting binaries won't run on Windows XP
or older. This is the default for Windows or older. This is the default for Windows
excluding 32-bit x86 builds (that is, on excluding 32-bit x86 builds (that is, on
x86-64 the default is `vista'). x86-64 the default is 'vista').
no Disable threading support. This is the no Disable threading support. This is the
same as using --disable-threads. same as using --disable-threads.
@ -494,7 +494,7 @@ XZ Utils Installation
the options --files or --files0 weren't used. This is a the options --files or --files0 weren't used. This is a
common use case, for example, (de)compressing .tar.xz common use case, for example, (de)compressing .tar.xz
files via GNU tar. The sandbox is also used for files via GNU tar. The sandbox is also used for
single-file `xz --test' or `xz --list'. single-file 'xz --test' or 'xz --list'.
Supported METHODs: Supported METHODs:

View file

@ -27,7 +27,7 @@ show_usage_and_exit(const char *argv0)
{ {
fprintf(stderr, "Usage: %s PRESET < INFILE > OUTFILE\n" fprintf(stderr, "Usage: %s PRESET < INFILE > OUTFILE\n"
"PRESET is a number 0-9 and can optionally be " "PRESET is a number 0-9 and can optionally be "
"followed by `e' to indicate extreme preset\n", "followed by 'e' to indicate extreme preset\n",
argv0); argv0);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }

View file

@ -33,7 +33,7 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
// large files on 32-bit systems (POSIX versions fseeko() and // large files on 32-bit systems (POSIX versions fseeko() and
// ftello() can support large files). // ftello() can support large files).
if (fseek(infile, 0, SEEK_END)) { if (fseek(infile, 0, SEEK_END)) {
fprintf(stderr, "Error seeking the file `%s': %s\n", fprintf(stderr, "Error seeking the file '%s': %s\n",
filename, strerror(errno)); filename, strerror(errno));
return false; return false;
} }
@ -80,7 +80,7 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
if (ferror(infile)) { if (ferror(infile)) {
fprintf(stderr, fprintf(stderr,
"Error reading from `%s': %s\n", "Error reading from '%s': %s\n",
filename, strerror(errno)); filename, strerror(errno));
return false; return false;
} }
@ -104,7 +104,7 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
// switch fseeko() or lseek(). // switch fseeko() or lseek().
if (fseek(infile, (long)(strm->seek_pos), SEEK_SET)) { if (fseek(infile, (long)(strm->seek_pos), SEEK_SET)) {
fprintf(stderr, "Error seeking the " fprintf(stderr, "Error seeking the "
"file `%s': %s\n", "file '%s': %s\n",
filename, strerror(errno)); filename, strerror(errno));
return false; return false;
} }
@ -133,24 +133,24 @@ print_file_size(lzma_stream *strm, FILE *infile, const char *filename)
case LZMA_FORMAT_ERROR: case LZMA_FORMAT_ERROR:
// .xz magic bytes weren't found. // .xz magic bytes weren't found.
fprintf(stderr, "The file `%s' is not " fprintf(stderr, "The file '%s' is not "
"in the .xz format\n", filename); "in the .xz format\n", filename);
return false; return false;
case LZMA_OPTIONS_ERROR: case LZMA_OPTIONS_ERROR:
fprintf(stderr, "The file `%s' has .xz headers that " fprintf(stderr, "The file '%s' has .xz headers that "
"are not supported by this liblzma " "are not supported by this liblzma "
"version\n", filename); "version\n", filename);
return false; return false;
case LZMA_DATA_ERROR: case LZMA_DATA_ERROR:
fprintf(stderr, "The file `%s' is corrupt\n", fprintf(stderr, "The file '%s' is corrupt\n",
filename); filename);
return false; return false;
case LZMA_MEM_ERROR: case LZMA_MEM_ERROR:
fprintf(stderr, "Memory allocation failed when " fprintf(stderr, "Memory allocation failed when "
"decoding the file `%s'\n", filename); "decoding the file '%s'\n", filename);
return false; return false;
// LZMA_MEMLIMIT_ERROR shouldn't happen because we used // LZMA_MEMLIMIT_ERROR shouldn't happen because we used
@ -183,7 +183,7 @@ main(int argc, char **argv)
FILE *infile = fopen(argv[i], "rb"); FILE *infile = fopen(argv[i], "rb");
if (infile == NULL) { if (infile == NULL) {
fprintf(stderr, "Cannot open the file `%s': %s\n", fprintf(stderr, "Cannot open the file '%s': %s\n",
argv[i], strerror(errno)); argv[i], strerror(errno));
success = false; success = false;
} }