From 4c2bc0bb4273282d6f44e1ab084143025249e344 Mon Sep 17 00:00:00 2001 From: undef Date: Tue, 8 Nov 2022 19:40:00 +0300 Subject: [PATCH] fix some typos --- cmake/VersionString.cmake | 2 +- doc/innoextract.1.in | 6 +++--- src/cli/extract.cpp | 2 +- src/setup/header.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmake/VersionString.cmake b/cmake/VersionString.cmake index 61918f55..7e176c9c 100644 --- a/cmake/VersionString.cmake +++ b/cmake/VersionString.cmake @@ -39,7 +39,7 @@ set(VERSION_STRING_SCRIPT "${VERSION_SCRIPT_DIR}/VersionScript.cmake") # - ${var}_${i}_LINE: Everything except the first component of the line # - ${var}_${i}_NAME: Everything except the last component of the line # - ${var}_${i}_STRING: The last component (excluding optional suffix) of the line -# - ${var}_${i}_SUFFIX: Suffix (seperated by " + ") of the line +# - ${var}_${i}_SUFFIX: Suffix (separated by " + ") of the line # - ${var}_${i}_MAJOR: First version component in ${var}_${i}_STRING # - ${var}_${i}_MINOR: Second version component in ${var}_${i}_STRING # - ${var}_${i}_PATCH: Third version component in ${var}_${i}_STRING diff --git a/doc/innoextract.1.in b/doc/innoextract.1.in index 98cc71c6..8b83c364 100644 --- a/doc/innoextract.1.in +++ b/doc/innoextract.1.in @@ -290,7 +290,7 @@ Show checksum \fB$c\fP and salt \fB$s\fP used for the password \fB$p\fP check as \fB$c = hash($s . $p)\fP -With the \fB\-\-silent\fP option, the checksum name and hash is printed on one line seperated by a space followed by the salt encoded as hex bytes and password encoding on separate lines. +With the \fB\-\-silent\fP option, the checksum name and hash is printed on one line separated by a space followed by the salt encoded as hex bytes and password encoding on separate lines. Checksum types can be \fBCRC32\fP, \fBMD5\fP or \fBSHA-1\fP although \fBCRC32\fP is not used in installers with encryption. @@ -330,12 +330,12 @@ The default value for this option is \fBUTC\fP, causing innoextract to not adjus \fB\-v\fP, \fB\-\-version\fP Print the \fBinnoextract\fP version number and supported Inno Setup versions. -If combined with the \fB\-\-silent\fP option, only the version \fInumber\fP is printed. Otherwise, the output will contain the name (innoextract) followed by the version number on the first line, and, unless the \fB\-\-quiet\fP options is specified, the range of suuported Inno Setup installer versions on the second line. +If combined with the \fB\-\-silent\fP option, only the version \fInumber\fP is printed. Otherwise, the output will contain the name (innoextract) followed by the version number on the first line, and, unless the \fB\-\-quiet\fP options is specified, the range of supported Inno Setup installer versions on the second line. .TP \fB\-\-no\-warn\-unused\fP By default, innoextract will print a warning if it encounters \fI.bin\fP files that look like they could be part of the setup but are not used. This option disables that warning. .SH PATH CONSTANTS -Paths in Inno Setup installers can contain constants (variable or code references) that are expanded at install time. innoextract expands all such constants to their name and replaces unsafe characters with \fB$\fP. For exmaple \fB{app}\fP is expanded to \fBapp\fP while \fB{code:Example}\fP is expanded to \fBcode$Example\fP. +Paths in Inno Setup installers can contain constants (variable or code references) that are expanded at install time. innoextract expands all such constants to their name and replaces unsafe characters with \fB$\fP. For example \fB{app}\fP is expanded to \fBapp\fP while \fB{code:Example}\fP is expanded to \fBcode$Example\fP. There is currently no way to configure this expansion except for disabling it with the \fB\-\-dump\fP option. .SH EXIT VALUES diff --git a/src/cli/extract.cpp b/src/cli/extract.cpp index 91c3152e..ae72f21f 100644 --- a/src/cli/extract.cpp +++ b/src/cli/extract.cpp @@ -159,7 +159,7 @@ class file_output : private boost::noncopyable { throw std::exception(); } } catch(...) { - throw std::runtime_error("Coul not open output file \"" + path_.string() + '"'); + throw std::runtime_error("Could not open output file \"" + path_.string() + '"'); } } } diff --git a/src/setup/header.cpp b/src/setup/header.cpp index 686de143..ad9139e4 100644 --- a/src/setup/header.cpp +++ b/src/setup/header.cpp @@ -812,7 +812,7 @@ NAMES(setup::header::architecture_types, "Architecture", "ARM64", ) -NAMES(setup::header::privileges_required_overrides, "Priviledge Override" +NAMES(setup::header::privileges_required_overrides, "Privilege Override" "commandline", "dialog", )