]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tidy-up: misc spelling (bit, ASCII)
authorViktor Szakats <commit@vsz.me>
Thu, 15 Aug 2024 09:00:04 +0000 (11:00 +0200)
committerViktor Szakats <commit@vsz.me>
Thu, 15 Aug 2024 13:30:09 +0000 (15:30 +0200)
Closes #14559

26 files changed:
.github/scripts/spellcheck.words
docs/TODO
docs/URL-SYNTAX.md
docs/examples/debug.c
docs/libcurl/curl_version_info.md
docs/libcurl/libcurl-tutorial.md
include/curl/curl.h
lib/asyn-thread.c
lib/content_encoding.c
lib/ftp.c
lib/mime.c
lib/setup-vms.h
lib/strtoofft.c
lib/tftp.c
lib/urldata.h
lib/vauth/digest.c
lib/vtls/schannel_verify.c
packages/vms/build_vms.com
packages/vms/config_h.com
packages/vms/gnv_link_curl.com
packages/vms/readme
packages/vms/setup_gnv_curl_build.com
src/tool_cfgable.h
tests/libtest/lib549.c
tests/libtest/lib552.c
tests/server/tftpd.c

index cf2aabf5370354393247656dbeba54a0419a2642..5ff25f45b0ec27701de0e2c4cfe39ce8be49e708 100644 (file)
@@ -33,7 +33,6 @@ archivers
 Archos
 Arntsen
 Aros
-ascii
 asynch
 AsynchDNS
 atime
index 0b761084214e7c0dedb05bce06d0c507c6e62795..6e6747b8c770af10230e90c907f97caa9601a8ed 100644 (file)
--- a/docs/TODO
+++ b/docs/TODO
 
 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".
 
 
  -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.
index e7b484f81a2c278e1d400ae9cf11a6083412ab2a..3c921f8570d15cfe9915f81e2a0fe5aa28b8883f 100644 (file)
@@ -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
 
index 68d93039e2d13cadde7e3735dc937724c17cb069..ac21b8aed20084b3e1431feac42e2f22b78513fc 100644 (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) {
index 2a0220d294d00eb83f22dee1fde4b2d32f16b9d7..271e935caf7af374539feeacc1174db215bc29e6 100644 (file)
@@ -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.
 
index d9fb10aa1d2121a9d296dbbcf1cb48a855e77e09..7c59e2f88c0e7b2239db8cae2e09dfd93e34c2b3 100644 (file)
@@ -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
index e37394174ac7dfb6e42a15d2a59de8c9b9d8aecc..29e025c318cd35b2c2e7ab714687752cef58b8b3 100644 (file)
@@ -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);
 
index d91152fdfa979966b7fa9224082dcafd744a5814..2136720602fdfe48edd14a38893347131f17c631 100644 (file)
@@ -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';
       }
index 4dae41a89678555b12fb0805e4e4a53e3f3111ba..734547d0066ea213f82133cc9710546657fd103b 100644 (file)
@@ -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 */
index fcb540a6b12f3476ae6ee384111cbc09301ff0ce..cbb89012cc37b53e560688b16a9907cd0dc55c60 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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];
index a90e06262033c49757be47418dbdf7528b59da69..9ba55fe3d27bbbf7b8a0a109e91f6abbb7838079 100644 (file)
@@ -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;
index fc215602842acb2a6ec7020b7b926a5ff705b244..33b74db358ca174b46a764593c06511a1b5fd1ec 100644 (file)
@@ -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
index 8fac230f2e2fd0be5d7c325ad13f9d162dffbfba..f1c7ba2711046807b808e40e4eb6e877ff1fb3e6 100644 (file)
@@ -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)
index c4cc8049d6c6237d1661c850102649711cba1a1b..c9463802fd12705a0c5b670bf84ee2829ab664b9 100644 (file)
@@ -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";
 
index d16e00dfe508522bacf362fd381e7ea6d80b70cd..8cacf1b08876e9cc9130db92d93e3fe87855a25b 100644 (file)
@@ -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
index f00e6651f8c64a95ba73872f7eccc6777eb0ab40..4fc5b1c28f8e29c3339799f37fa4ce3bcaf4505e 100644 (file)
@@ -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 */
 {
index b2d91cb99eaf71bdcfee3f0d8ecf6bd9a5a17280..ef7dceb561a3478331a1b453f65fbb45aec480f5 100644 (file)
@@ -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++);
     }
index 1b023649f4bf2dfc031dfb235ee30c092e15e619..d8f89f6ef4366e1d48222a520cfb4a29d3fcb018 100644 (file)
@@ -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
index b54a1a0f96536a0e1016ee53d509d670cfd86948..8d231f4c978166d27fb603e7db464fa38abe98bb 100644 (file)
@@ -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
index 552d7d45dd7114e90a101b049cd002d1a358055a..2acd49a6ad2a78ec23d651d028190316d5460312 100644 (file)
@@ -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
index eaf23e9427946e27272ed6e1b5a27160812c2f2d..042a22b8070e1bb795093a309a9c98396c1b311c 100644 (file)
@@ -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.
index 1685b6a2f48aac842b7272a838a9a91204679095..49882463f3c44d57b8d44f7ab96ae349e158d63c 100644 (file)
@@ -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'
index 1a2e5374e3edbf2fc43c5ec377554bc80bf1fd5c..729cd5241a620c842b32d9b303ed9eaf0426acd5 100644 (file)
@@ -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 */
index aac8cb3958bef9802a93a16c764d72ad7f78d0ab..7bd67093f246ebc772c9a9302852503517b3bccb 100644 (file)
@@ -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);
   }
 
index 0ecc0d62e301b07febb0330ecf6fc48052e3f323..c0d30d68c8b09b901b5ae2dc5be5e6ebf73e7ae3 100644 (file)
@@ -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);
index afef684a4acde9fe6bf285ccf4e9cadfd6367bd5..bda44a9d362b6376b07463f75e94ed5035157403 100644 (file)
@@ -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;