tidy-up: misc spelling (bit, ASCII)

Closes #14559
This commit is contained in:
Viktor Szakats 2024-08-15 11:00:04 +02:00
Родитель 551baf7d64
Коммит b042d5297d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5ABD165E2AEF201
26 изменённых файлов: 42 добавлений и 43 удалений

1
.github/scripts/spellcheck.words поставляемый
Просмотреть файл

@ -33,7 +33,6 @@ archivers
Archos
Arntsen
Aros
ascii
asynch
AsynchDNS
atime

Просмотреть файл

@ -347,7 +347,7 @@
1.17 Add support for IRIs
IRIs (RFC 3987) allow localized, non-ascii, names in the URL. To properly
IRIs (RFC 3987) allow localized, non-ASCII, names in the URL. To properly
support this, curl/libcurl would need to translate/encode the given input
from the input string encoding into percent encoded output "over the wire".
@ -1234,7 +1234,7 @@
-J/--remote-header-name does not decode %-encoded filenames. RFC 6266 details
how it should be done. The can of worm is basically that we have no charset
handling in curl and ascii >=128 is a challenge for us. Not to mention that
handling in curl and ASCII >=128 is a challenge for us. Not to mention that
decoding also means that we need to check for nastiness that is attempted,
like "../" sequences and the like. Probably everything to the left of any
embedded slashes should be cut off.

Просмотреть файл

@ -226,7 +226,7 @@ directory listing for the root / home directory is returned.
FTP servers typically put the user in its "home directory" after login, which
then differs between users. To explicitly specify the root directory of an FTP
server, start the path with double slash `//` or `/%2f` (2F is the hexadecimal
value of the ascii code for the slash).
value of the ASCII code for the slash).
## FILE

Просмотреть файл

@ -128,7 +128,7 @@ int main(void)
CURLcode res;
struct data config;
config.trace_ascii = 1; /* enable ascii tracing */
config.trace_ascii = 1; /* enable ASCII tracing */
curl = curl_easy_init();
if(curl) {

Просмотреть файл

@ -116,13 +116,13 @@ new the libcurl you are using is. You are however guaranteed to get a struct
that you have a matching struct for in the header, as you tell libcurl your
"age" with the input argument.
*version* is just an ascii string for the libcurl version.
*version* is just an ASCII string for the libcurl version.
*version_num* is a 24 bit number created like this: \<8 bits major number\> |
\<8 bits minor number\> | \<8 bits patch number\>. Version 7.9.8 is therefore
returned as 0x070908.
*host* is an ascii string showing what host information that this libcurl
*host* is an ASCII string showing what host information that this libcurl
was built for. As discovered by a configure script or set by the build
environment.

Просмотреть файл

@ -1255,7 +1255,7 @@ curl_mime_subparts(3). Once it has been
bound to its parent multi-part, a nth-level multi-part belongs to it and
should not be freed explicitly.
Email messages data is not supposed to be non-ascii and line length is
Email messages data is not supposed to be non-ASCII and line length is
limited: fortunately, some transfer encodings are defined by the standards to
support the transmission of such incompatible data. Function
curl_mime_encoder(3) tells a part that its source data must be encoded

Просмотреть файл

@ -2645,7 +2645,7 @@ CURL_EXTERN char *curl_getenv(const char *variable);
*
* DESCRIPTION
*
* Returns a static ascii string of the libcurl version.
* Returns a static ASCII string of the libcurl version.
*/
CURL_EXTERN char *curl_version(void);

Просмотреть файл

@ -371,7 +371,7 @@ query_complete(DWORD err, DWORD bytes, LPWSAOVERLAPPED overlapped)
if(namelen) {
size_t i;
ca->ai_canonname = (void *)((char *)ca->ai_addr + ss_size);
for(i = 0; i < namelen; ++i) /* convert wide string to ascii */
for(i = 0; i < namelen; ++i) /* convert wide string to ASCII */
ca->ai_canonname[i] = (char)ai->ai_canonname[i];
ca->ai_canonname[namelen] = '\0';
}

Просмотреть файл

@ -79,7 +79,7 @@
#define GZIP_MAGIC_1 0x8b
/* gzip flag byte */
#define ASCII_FLAG 0x01 /* bit 0 set: file probably ascii text */
#define ASCII_FLAG 0x01 /* bit 0 set: file probably ASCII text */
#define HEAD_CRC 0x02 /* bit 1 set: header CRC present */
#define EXTRA_FIELD 0x04 /* bit 2 set: extra field present */
#define ORIG_NAME 0x08 /* bit 3 set: original filename present */

Просмотреть файл

@ -188,7 +188,7 @@ static CURLcode ftp_regular_transfer(struct Curl_easy *data, bool *done);
#ifndef CURL_DISABLE_VERBOSE_STRINGS
static void ftp_pasv_verbose(struct Curl_easy *data,
struct Curl_addrinfo *ai,
char *newhost, /* ascii version */
char *newhost, /* ASCII version */
int port);
#endif
static CURLcode ftp_state_prepare_transfer(struct Curl_easy *data);
@ -3694,7 +3694,7 @@ static CURLcode ftp_nb_type(struct Curl_easy *data,
static void
ftp_pasv_verbose(struct Curl_easy *data,
struct Curl_addrinfo *ai,
char *newhost, /* ascii version */
char *newhost, /* ASCII version */
int port)
{
char buf[256];

Просмотреть файл

@ -92,7 +92,7 @@ static const char base64enc[] =
/* Quoted-printable character class table.
*
* We cannot rely on ctype functions since quoted-printable input data
* is assumed to be ascii-compatible, even on non-ascii platforms. */
* is assumed to be ASCII-compatible, even on non-ASCII platforms. */
#define QP_OK 1 /* Can be represented by itself. */
#define QP_SP 2 /* Space or tab. */
#define QP_CR 3 /* Carriage return. */
@ -557,7 +557,7 @@ static size_t encoder_qp_read(char *buffer, size_t size, bool ateof,
/* On all platforms, input is supposed to be ASCII compatible: for this
reason, we use hexadecimal ASCII codes in this function rather than
character constants that can be interpreted as non-ascii on some
character constants that can be interpreted as non-ASCII on some
platforms. Preserve ASCII encoding on output too. */
while(st->bufbeg < st->bufend) {
size_t len = 1;

Просмотреть файл

@ -101,7 +101,7 @@ static char *vms_translate_path(const char *path)
}
}
# else
/* VMS translate path is actually not needed on the current 64 bit */
/* VMS translate path is actually not needed on the current 64-bit */
/* VMS platforms, so instead of figuring out the pointer settings */
/* Change it to a noop */
# define vms_translate_path(__path) __path

Просмотреть файл

@ -207,7 +207,7 @@ static int get_char(char c, int base)
#endif /* Only present if we need strtoll, but do not have it. */
/*
* Parse a *positive* up to 64-bit number written in ascii.
* Parse a *positive* up to 64-bit number written in ASCII.
*/
CURLofft curlx_strtoofft(const char *str, char **endp, int base,
curl_off_t *num)

Просмотреть файл

@ -434,7 +434,7 @@ static CURLcode tftp_send_first(struct tftp_state_data *state,
struct Curl_easy *data = state->data;
CURLcode result = CURLE_OK;
/* Set ascii mode if -B flag was used */
/* Set ASCII mode if -B flag was used */
if(data->state.prefer_ascii)
mode = "netascii";

Просмотреть файл

@ -759,7 +759,7 @@ struct Curl_handler {
HTTP proxy as HTTP proxies may know
this protocol and act as a gateway */
#define PROTOPT_WILDCARD (1<<12) /* protocol supports wildcard matching */
#define PROTOPT_USERPWDCTRL (1<<13) /* Allow "control bytes" (< 32 ascii) in
#define PROTOPT_USERPWDCTRL (1<<13) /* Allow "control bytes" (< 32 ASCII) in
username and password */
#define PROTOPT_NOTCPPROXY (1<<14) /* this protocol cannot proxy over TCP */
@ -1494,7 +1494,7 @@ enum dupstring {
#ifdef USE_SSH
STRING_SSH_PRIVATE_KEY, /* path to the private key file for auth */
STRING_SSH_PUBLIC_KEY, /* path to the public key file for auth */
STRING_SSH_HOST_PUBLIC_KEY_MD5, /* md5 of host public key in ascii hex */
STRING_SSH_HOST_PUBLIC_KEY_MD5, /* md5 of host public key in ASCII hex */
STRING_SSH_HOST_PUBLIC_KEY_SHA256, /* sha256 of host public key in base64 */
STRING_SSH_KNOWNHOSTS, /* filename of knownhosts file */
#endif

Просмотреть файл

@ -142,7 +142,7 @@ bool Curl_auth_digest_get_pair(const char *str, char *value, char *content,
}
#if !defined(USE_WINDOWS_SSPI)
/* Convert md5 chunk to RFC2617 (section 3.1.3) -suitable ascii string */
/* Convert md5 chunk to RFC2617 (section 3.1.3) -suitable ASCII string */
static void auth_digest_md5_to_ascii(unsigned char *source, /* 16 bytes */
unsigned char *dest) /* 33 bytes */
{
@ -151,7 +151,7 @@ static void auth_digest_md5_to_ascii(unsigned char *source, /* 16 bytes */
msnprintf((char *) &dest[i * 2], 3, "%02x", source[i]);
}
/* Convert sha256 or SHA-512/256 chunk to RFC7616 -suitable ascii string */
/* Convert sha256 or SHA-512/256 chunk to RFC7616 -suitable ASCII string */
static void auth_digest_sha256_to_ascii(unsigned char *source, /* 32 bytes */
unsigned char *dest) /* 65 bytes */
{

Просмотреть файл

@ -452,7 +452,7 @@ static DWORD cert_get_name_string(struct Curl_easy *data,
}
dns_w = entry->pwszDNSName;
/* pwszDNSName is in ia5 string format and hence does not contain any
* non-ascii characters. */
* non-ASCII characters. */
while(*dns_w != '\0') {
*current_pos++ = (TCHAR)(*dns_w++);
}

Просмотреть файл

@ -20,10 +20,10 @@ $!
$! 64 Compile with 64-bit pointers.
$! Note, you must match the pointer size that the OpenSSL
$! shared image expects.
$! Currently curl is not building properly with 64 bit pointers
$! on VMS because it is trying to cast pointers to 32 bit
$! Currently curl is not building properly with 64-bit pointers
$! on VMS because it is trying to cast pointers to 32-bit
$! integers and some OpenVMS library routines called by curl
$! do not yet support 64 bit pointers.
$! do not yet support 64-bit pointers.
$! CCQUAL=x Add "x" to the C compiler qualifiers.
$! Default qualifiers are:
$! /standard=relaxed
@ -638,21 +638,21 @@ $ libzshr_line = ""
$ try_shr = "gnv$libzshr"
$ if build_64
$ then
$! First look for 64 bit
$! First look for 64-bit
$ if f$search("''try_shr'64") .eqs. ""
$ then
$! Second look for the J.F. Pieronne 64 bit shared image
$! Second look for the J.F. Pieronne 64-bit shared image
$ try_shr = "LIBZ_SHR64"
$ if f$search(try_shr) .eqs. "" then nozlib = 1
$ endif
$ else
$! First look for 32 bit
$! First look for 32-bit
$ if f$search("''try_shr'32") .eqs. ""
$ then
$! Second look for old 32 bit image
$! Second look for old 32-bit image
$ if f$search(try_shr) .eqs. ""
$ then
$! Third look for the J.F. Pieronne 32 bit shared image
$! Third look for the J.F. Pieronne 32-bit shared image
$ try_shr = "LIBZ_SHR32"
$ if f$search(try_shr) .eqs. "" then nozlib = 1
$ endif

Просмотреть файл

@ -1319,7 +1319,7 @@ $ search/out=nl: 'tfile1' -
$ severity = '$severity'
$!
$!
$! Of course the 64 bit stuff is different
$! Of course the 64-bit stuff is different
$!---------------------------------------------------------
$ if severity .ne. 1 .and. key64
$ then

Просмотреть файл

@ -123,7 +123,7 @@ $ endif
$ endif
$!
$! Create the a new option file with special fixup for HP SSL
$! For a shared image, we always want ZLIB and 32 bit HPSSL
$! For a shared image, we always want ZLIB and 32-bit HPSSL
$!
$ if f$search("gnv$libzshr32") .eqs. ""
$ then

Просмотреть файл

@ -173,7 +173,7 @@ the GNV tool kit, building a shared libcurl, and producing a PCSI kit for
distribution. The curl_gnv_build_steps.text is included in the release
notes file of the PCSI kit.
The building with 64 bit pointers does not currently work.
The building with 64-bit pointers does not currently work.
The build procedure will detect if HP OpenSSL, LDAP, and Kerberos are
installed and default to building with them.

Просмотреть файл

@ -66,9 +66,9 @@ $! Set the compiler options for GNV CC wrapper to inherit.
$ cc :== cc'clist''cnames'/nested_include_directory=none
$ cxx :== cxx'clist''cnames'/nested_include_directory=none
$ pointer_size = "32"
$! Note 64 bit pointers requires all libraries to either have
$! 64 bit pointers or have #pragma directives.
$! Currently building curl on VMS with 64 bit pointers does not work.
$! Note 64-bit pointers requires all libraries to either have
$! 64-bit pointers or have #pragma directives.
$! Currently building curl on VMS with 64-bit pointers does not work.
$!
$! A logical name to make it easier to find some of the hacks.
$ define/job gnv_hacks 'base_dir'

Просмотреть файл

@ -111,7 +111,7 @@ struct OperationConfig {
bool sasl_ir; /* Enable/disable SASL initial response */
bool proxytunnel;
bool ftp_append; /* APPE on ftp */
bool use_ascii; /* select ascii or text transfer */
bool use_ascii; /* select ASCII or text transfer */
bool autoreferer; /* automatically set referer */
bool failonerror; /* fail on (HTTP) errors */
bool failwithbody; /* fail on (HTTP) errors but still store body */

Просмотреть файл

@ -52,7 +52,7 @@ CURLcode test(char *URL)
test_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 1L);
test_setopt(curl, CURLOPT_VERBOSE, 1L);
if(libtest_arg3) {
/* enable ascii/text mode */
/* enable ASCII/text mode */
test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
}

Просмотреть файл

@ -174,7 +174,7 @@ CURLcode test(char *URL)
size_t i;
static const char fill[] = "test data";
config.trace_ascii = 1; /* enable ascii tracing */
config.trace_ascii = 1; /* enable ASCII tracing */
global_init(CURL_GLOBAL_ALL);
easy_init(curl);

Просмотреть файл

@ -343,7 +343,7 @@ static struct tftphdr *r_init(void)
Free it and return next buffer filled with data.
*/
static int readit(struct testcase *test, struct tftphdr **dpp,
int convert /* if true, convert to ascii */)
int convert /* if true, convert to ASCII */)
{
struct bf *b;
@ -359,11 +359,11 @@ static int readit(struct testcase *test, struct tftphdr **dpp,
}
/*
* fill the input buffer, doing ascii conversions if requested
* fill the input buffer, doing ASCII conversions if requested
* conversions are lf -> cr, lf and cr -> cr, nul
*/
static void read_ahead(struct testcase *test,
int convert /* if true, convert to ascii */)
int convert /* if true, convert to ASCII */)
{
int i;
char *p;