From patchwork Sat May 27 07:00:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Pluzhnikov X-Patchwork-Id: 70179 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C17A3857359 for ; Sat, 27 May 2023 07:01:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C17A3857359 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685170880; bh=8LGdT/ACia3e2fUxKgtouhdo18dMLuubuwV7sa9LHOY=; h=Date:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=hw5glGy3SfvFhzBRmDxU2ksz3kEYH8eABVbClFNfpxkp9jyLrTXNsWeYMm2vwzpe2 sdd6ClorLo2382Y9Ic5ChtjK4H9sEx0daEdC8pUMdp7Jv1/VyDX7qhTSTde6CLFms6 BU0v4vJ0n4o6P30IhPKkeImq3k7ZEO+8z+hOWbbE= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x54a.google.com (mail-pg1-x54a.google.com [IPv6:2607:f8b0:4864:20::54a]) by sourceware.org (Postfix) with ESMTPS id 2EC963858D33 for ; Sat, 27 May 2023 07:00:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2EC963858D33 Received: by mail-pg1-x54a.google.com with SMTP id 41be03b00d2f7-53f44c25595so886077a12.2 for ; Sat, 27 May 2023 00:00:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685170855; x=1687762855; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8LGdT/ACia3e2fUxKgtouhdo18dMLuubuwV7sa9LHOY=; b=ga5I71dREeexRBdDdTqyzedWDJNIM2vAvTCIjyBpT00ETACbttkb3uhtNmWo275zZb /u1rLuAWhtdaPomZrMjBZ9k8mPocCFKTKXPR0bYpKJqWxG0JRAHBJgoPOTRgNlOzVSLH Tm3tLiLLe8jH+NOfxrWY/LsuJv6ZhAmFvdOC6OmUXyFKM7rYhQHl8Lz2VDMbpVUEy0tS I40Rpi0eVRDQMa6CF2t8YfcvoAYevrCGvdICHDkHYDQxuYRKDvrh2HN6RIogs1YEOr2F +TwNUQ9cAE8lDwcm7fLVTYn0WM3HbQDLXLfE08XIX++0KsdL1R+Eu6IIZNcURjEi7gQI 6bTQ== X-Gm-Message-State: AC+VfDxjizAPiVjvFq1oaix8S6LDb72lDQ5HF9g+wYstzxMHAj4ocl0t xflJQ0wK4OA4HRoSYaV9c+nSZpHT0qZZXf43in3k0M7GTIXa5+m8Xz2lVs/KdjZd8hUWJSrMxbz U+AJ4REKTVNAy1Qn6wc5f6lE13UqpbuPjBM6DRil3W6OeslEncUcQTkUL/JlUypXbjqcbtwRGK4 ANMuA= X-Google-Smtp-Source: ACHHUZ686IYLMb9GE7cg0XMDtsjbtHomNeXWbs08/JOtDEeEvzp0BvNcqTx0AG/s8wterBixWsBGtYrd60jgLbtAHA== X-Received: from elbrus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:12e9]) (user=ppluzhnikov job=sendgmr) by 2002:a63:e951:0:b0:530:3a79:9f6a with SMTP id q17-20020a63e951000000b005303a799f6amr335355pgj.8.1685170854896; Sat, 27 May 2023 00:00:54 -0700 (PDT) Date: Sat, 27 May 2023 07:00:33 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.rc0.172.g3f132b7071-goog Message-ID: <20230527070032.4047310-2-ppluzhnikov@google.com> Subject: [PATCH] Fix misspellings in iconv/ and iconvdata/ -- BZ 25337 To: libc-alpha@sourceware.org Cc: Paul Pluzhnikov X-Spam-Status: No, score=-20.2 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Paul Pluzhnikov via Libc-alpha From: Paul Pluzhnikov Reply-To: Paul Pluzhnikov Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" All the changes are in comments or '#error' messages. Applying this commit results in bit-identical rebuild of iconvdata/*.so --- iconv/gconv_charset.c | 4 ++-- iconv/gconv_charset.h | 2 +- iconv/gconv_conf.c | 2 +- iconv/gconv_int.h | 2 +- iconv/gconv_simple.c | 8 ++++---- iconv/iconv_prog.c | 2 +- iconv/iconvconfig.c | 2 +- iconvdata/bug-iconv8.c | 2 +- iconvdata/ibm1364.c | 2 +- iconvdata/ibm930.c | 2 +- iconvdata/ibm933.c | 2 +- iconvdata/ibm935.c | 2 +- iconvdata/ibm937.c | 2 +- iconvdata/ibm939.c | 2 +- iconvdata/iso-2022-cn-ext.c | 2 +- iconvdata/iso-2022-cn.c | 2 +- iconvdata/iso-2022-jp-3.c | 2 +- iconvdata/iso-2022-jp.c | 4 ++-- iconvdata/iso-2022-kr.c | 2 +- iconvdata/iso646.c | 2 +- iconvdata/sjis.c | 2 +- iconvdata/tst-table.sh | 2 +- 22 files changed, 27 insertions(+), 27 deletions(-) diff --git a/iconv/gconv_charset.c b/iconv/gconv_charset.c index 5696058298..0cf3226be6 100644 --- a/iconv/gconv_charset.c +++ b/iconv/gconv_charset.c @@ -181,10 +181,10 @@ __gconv_create_spec (struct gconv_spec *conv_spec, const char *fromcode, implementation has always handled them. Only suffixes in the tocode are processed and handled. The reality is that invalid input in the input character set should only be ignored if the fromcode specifies IGNORE. - The current implementation ignores invalid intput in the input character + The current implementation ignores invalid input in the input character set if the tocode contains IGNORE. We preserve this behavior for backwards compatibility. In the future we may split the handling of - IGNORE to allow a finer grained specification of ignorning invalid input + IGNORE to allow a finer grained specification of ignoring invalid input and/or ignoring invalid output. */ conv_spec->translit = ptc.translit; conv_spec->ignore = ptc.ignore; diff --git a/iconv/gconv_charset.h b/iconv/gconv_charset.h index 00744aad56..07815b0eee 100644 --- a/iconv/gconv_charset.h +++ b/iconv/gconv_charset.h @@ -48,7 +48,7 @@ /* This function copies in-order, characters from the source 's' that are - either alpha-numeric or one in one of these: "_-.,:/" - into the destination + either alphanumeric or one in one of these: "_-.,:/" - into the destination 'wp' while dropping all other characters. In the process, it converts all alphabetical characters to upper case. It then appends up to two '/' characters so that the total number of '/'es in the destination is 2. */ diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c index c76011d6bc..ee9e97e1bd 100644 --- a/iconv/gconv_conf.c +++ b/iconv/gconv_conf.c @@ -153,7 +153,7 @@ static void add_alias (char *rp) { /* We now expect two more string. The strings are normalized - (converted to UPPER case) and strored in the alias database. */ + (converted to UPPER case) and stored in the alias database. */ char *from, *to, *wp; while (__isspace_l (*rp, _nl_C_locobj_ptr)) diff --git a/iconv/gconv_int.h b/iconv/gconv_int.h index 4b247a815f..19d042faff 100644 --- a/iconv/gconv_int.h +++ b/iconv/gconv_int.h @@ -172,7 +172,7 @@ __libc_lock_define (extern, __gconv_lock attribute_hidden) }) -/* Return in *HANDLE, a decriptor for the transformation. The function expects +/* Return in *HANDLE, a descriptor for the transformation. The function expects the specification of the transformation in the structure pointed to by CONV_SPEC. It only reads *CONV_SPEC and does not take ownership of it. */ extern int __gconv_open (struct gconv_spec *conv_spec, diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c index c60cffad4c..e936e171d7 100644 --- a/iconv/gconv_simple.c +++ b/iconv/gconv_simple.c @@ -56,7 +56,7 @@ __gconv_btwoc_ascii (struct __gconv_step *step, unsigned char c) /* Transform from the internal, UCS4-like format, to UCS4. The difference between the internal ucs4 format and the real UCS4 - format is, if any, the endianess. The Unicode/ISO 10646 says that + format is, if any, the endianness. The Unicode/ISO 10646 says that unless some higher protocol specifies it differently, the byte order is big endian.*/ #define DEFINE_INIT 0 @@ -100,7 +100,7 @@ internal_ucs4_loop (struct __gconv_step *step, *inptrp = inptr + n_convert * 4; *outptrp = __mempcpy (outptr, inptr, n_convert * 4); #else -# error "This endianess is not supported." +# error "This endianness is not supported." #endif /* Determine the status. */ @@ -153,7 +153,7 @@ internal_ucs4_loop_single (struct __gconv_step *step, (*outptrp)[2] = state->__value.__wchb[2]; (*outptrp)[3] = state->__value.__wchb[3]; #else -# error "This endianess is not supported." +# error "This endianness is not supported." #endif *outptrp += 4; @@ -347,7 +347,7 @@ internal_ucs4le_loop (struct __gconv_step *step, *inptrp = inptr + n_convert * 4; *outptrp = __mempcpy (outptr, inptr, n_convert * 4); #else -# error "This endianess is not supported." +# error "This endianness is not supported." #endif /* Determine the status. */ diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c index 1d90938d71..bee898c63c 100644 --- a/iconv/iconv_prog.c +++ b/iconv/iconv_prog.c @@ -537,7 +537,7 @@ incomplete character or shift sequence at end of buffer")); static int process_fd (iconv_t cd, int fd, FILE **output, const char *output_file) { - /* we have a problem with reading from a desriptor since we must not + /* we have a problem with reading from a descriptor since we must not provide the iconv() function an incomplete character or shift sequence at the end of the buffer. Since we have to deal with arbitrary encodings we must read the whole text in a buffer and diff --git a/iconv/iconvconfig.c b/iconv/iconvconfig.c index a319e2f762..f3f4baa4e7 100644 --- a/iconv/iconvconfig.c +++ b/iconv/iconvconfig.c @@ -445,7 +445,7 @@ static void add_alias (char *rp) { /* We now expect two more string. The strings are normalized - (converted to UPPER case) and strored in the alias database. */ + (converted to UPPER case) and stored in the alias database. */ char *from; char *to; char *wp; diff --git a/iconvdata/bug-iconv8.c b/iconvdata/bug-iconv8.c index e32d891b5c..1ebb674c91 100644 --- a/iconvdata/bug-iconv8.c +++ b/iconvdata/bug-iconv8.c @@ -29,7 +29,7 @@ do_test (void) /* * result: -1 84 0 0 (84=EILSEQ) * - * Error is returnd but inbuf is consumed. + * Error is returned but inbuf is consumed. * * \x83\xd9 is valid shift-jis sequence but no character is assigned * to it. diff --git a/iconvdata/ibm1364.c b/iconvdata/ibm1364.c index 4d6ec71139..5203f30e79 100644 --- a/iconvdata/ibm1364.c +++ b/iconvdata/ibm1364.c @@ -91,7 +91,7 @@ /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_curcs = *curcsp; \ diff --git a/iconvdata/ibm930.c b/iconvdata/ibm930.c index 2939d4d29e..fe2fe1f15b 100644 --- a/iconvdata/ibm930.c +++ b/iconvdata/ibm930.c @@ -80,7 +80,7 @@ /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_curcs = *curcsp; \ diff --git a/iconvdata/ibm933.c b/iconvdata/ibm933.c index 95935b8b36..4db0699a68 100644 --- a/iconvdata/ibm933.c +++ b/iconvdata/ibm933.c @@ -79,7 +79,7 @@ /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_curcs = *curcsp; \ diff --git a/iconvdata/ibm935.c b/iconvdata/ibm935.c index 1d8240a758..3c3d697a24 100644 --- a/iconvdata/ibm935.c +++ b/iconvdata/ibm935.c @@ -80,7 +80,7 @@ /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_curcs = *curcsp; \ diff --git a/iconvdata/ibm937.c b/iconvdata/ibm937.c index 9e02aba122..1586036c1e 100644 --- a/iconvdata/ibm937.c +++ b/iconvdata/ibm937.c @@ -80,7 +80,7 @@ /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_curcs = *curcsp; \ diff --git a/iconvdata/ibm939.c b/iconvdata/ibm939.c index ce719cb29f..9b053c696e 100644 --- a/iconvdata/ibm939.c +++ b/iconvdata/ibm939.c @@ -80,7 +80,7 @@ /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_curcs = *curcsp; \ diff --git a/iconvdata/iso-2022-cn-ext.c b/iconvdata/iso-2022-cn-ext.c index d0c3ca4f03..36727f0865 100644 --- a/iconvdata/iso-2022-cn-ext.c +++ b/iconvdata/iso-2022-cn-ext.c @@ -154,7 +154,7 @@ enum /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_set = *setp; \ diff --git a/iconvdata/iso-2022-cn.c b/iconvdata/iso-2022-cn.c index 73eb5e77c6..5660ead668 100644 --- a/iconvdata/iso-2022-cn.c +++ b/iconvdata/iso-2022-cn.c @@ -102,7 +102,7 @@ enum /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_set = *setp; \ diff --git a/iconvdata/iso-2022-jp-3.c b/iconvdata/iso-2022-jp-3.c index d341a14f51..c722bdbfc3 100644 --- a/iconvdata/iso-2022-jp-3.c +++ b/iconvdata/iso-2022-jp-3.c @@ -156,7 +156,7 @@ enum /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ saved_state = *statep; \ diff --git a/iconvdata/iso-2022-jp.c b/iconvdata/iso-2022-jp.c index f31dfb92e6..b023d3cf8e 100644 --- a/iconvdata/iso-2022-jp.c +++ b/iconvdata/iso-2022-jp.c @@ -249,7 +249,7 @@ gconv_end (struct __gconv_step *data) /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_set = *setp; \ @@ -679,7 +679,7 @@ static const cvlist_t conversion_lists[4] = the character is unknown. \ The CJK character sets partially overlap when seen as subsets \ of ISO 10646; therefore there is no single correct result. \ - We use a preferrence order which depends on the language tag. */ \ + We use a preference order which depends on the language tag. */ \ \ if (ch <= 0x7f) \ { \ diff --git a/iconvdata/iso-2022-kr.c b/iconvdata/iso-2022-kr.c index e71198aee9..fd785fd8f9 100644 --- a/iconvdata/iso-2022-kr.c +++ b/iconvdata/iso-2022-kr.c @@ -100,7 +100,7 @@ enum /* Since we might have to reset input pointer we must be able to save - and retore the state. */ + and restore the state. */ #define SAVE_RESET_STATE(Save) \ if (Save) \ save_set = *setp; \ diff --git a/iconvdata/iso646.c b/iconvdata/iso646.c index f7111a3759..1800dc8fdb 100644 --- a/iconvdata/iso646.c +++ b/iconvdata/iso646.c @@ -21,7 +21,7 @@ zillions of ISO 646 derivates and supporting them all in a separate module is overkill since these coded character sets are hardly ever used anymore (except ANSI_X3.4-1968 == ASCII, which is compatible - with ISO 8859-1). The European variants are superceded by the + with ISO 8859-1). The European variants are superseded by the various ISO 8859-? standards and the Asian variants are embedded in larger character sets. Therefore this implementation is simply here to make it possible to do the conversion if it is necessary. diff --git a/iconvdata/sjis.c b/iconvdata/sjis.c index 93c28db13e..5ab821bbff 100644 --- a/iconvdata/sjis.c +++ b/iconvdata/sjis.c @@ -2001,7 +2001,7 @@ static const char from_ucs4_greek[193][2] = /* The mapping of the Kanji is horrible. The glyphs covered by Shift JIS - are spreaded all around the Unicode CJK area. We use one big table + are spread all around the Unicode CJK area. We use one big table since using the gaps will not buy us much. The following table can be generated using diff --git a/iconvdata/tst-table.sh b/iconvdata/tst-table.sh index d5b1f3c87d..bc6f542b24 100755 --- a/iconvdata/tst-table.sh +++ b/iconvdata/tst-table.sh @@ -44,7 +44,7 @@ if test ${charset} = GB18030; then mv ${objpfx}tst-${charset}.truncated.table ${objpfx}tst-${charset}.charmap.table fi -# Precomputed expexted differences between the charmap and iconv forward. +# Precomputed expected differences between the charmap and iconv forward. precomposed=${charset}.precomposed # Precompute expected differences between the charmap and iconv backward.