public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v17 1/2] iconv: __gconv_btwoc_ascii -> __gconv_btowc_ascii
@ 2023-07-16 19:21 наб
  2023-07-16 19:23 ` [PATCH v17 2/2] POSIX locale covers every byte [BZ# 29511] наб
  0 siblings, 1 reply; 2+ messages in thread
From: наб @ 2023-07-16 19:21 UTC (permalink / raw)
  To: Florian Weimer; +Cc: libc-alpha, Victor Stinner, Bruno Haible

[-- Attachment #1: Type: text/plain, Size: 2844 bytes --]

The only user of this typo, sans the ChangeLogs.

Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
 iconv/gconv_builtin.h | 4 ++--
 iconv/gconv_int.h     | 2 +-
 iconv/gconv_simple.c  | 2 +-
 wcsmbs/wcsmbsload.c   | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/iconv/gconv_builtin.h b/iconv/gconv_builtin.h
index 35608b4461..2f560a924a 100644
--- a/iconv/gconv_builtin.h
+++ b/iconv/gconv_builtin.h
@@ -52,7 +52,7 @@ BUILTIN_TRANSFORMATION ("INTERNAL", "ISO-10646/UTF8/", 1, "=INTERNAL->utf8",
 			__gconv_transform_internal_utf8, NULL, 4, 4, 1, 6)
 
 BUILTIN_TRANSFORMATION ("ISO-10646/UTF8/", "INTERNAL", 1, "=utf8->INTERNAL",
-			__gconv_transform_utf8_internal, __gconv_btwoc_ascii,
+			__gconv_transform_utf8_internal, __gconv_btowc_ascii,
 			1, 6, 4, 4)
 
 BUILTIN_ALIAS ("UCS2//", "ISO-10646/UCS2/")
@@ -82,7 +82,7 @@ BUILTIN_ALIAS ("CSASCII//", "ANSI_X3.4-1968//")
 BUILTIN_ALIAS ("OSF00010020//", "ANSI_X3.4-1968//")
 
 BUILTIN_TRANSFORMATION ("ANSI_X3.4-1968//", "INTERNAL", 1, "=ascii->INTERNAL",
-			__gconv_transform_ascii_internal, __gconv_btwoc_ascii,
+			__gconv_transform_ascii_internal, __gconv_btowc_ascii,
 			1, 1, 4, 4)
 
 BUILTIN_TRANSFORMATION ("INTERNAL", "ANSI_X3.4-1968//", 1, "=INTERNAL->ascii",
diff --git a/iconv/gconv_int.h b/iconv/gconv_int.h
index 19d042faff..e3baec97f0 100644
--- a/iconv/gconv_int.h
+++ b/iconv/gconv_int.h
@@ -325,7 +325,7 @@ __BUILTIN_TRANSFORM (__gconv_transform_utf16_internal);
 
 /* Specialized conversion function for a single byte to INTERNAL, recognizing
    only ASCII characters.  */
-extern wint_t __gconv_btwoc_ascii (struct __gconv_step *step, unsigned char c);
+extern wint_t __gconv_btowc_ascii (struct __gconv_step *step, unsigned char c);
 
 #endif
 
diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c
index e936e171d7..17788383f4 100644
--- a/iconv/gconv_simple.c
+++ b/iconv/gconv_simple.c
@@ -45,7 +45,7 @@
 /* Specialized conversion function for a single byte to INTERNAL, recognizing
    only ASCII characters.  */
 wint_t
-__gconv_btwoc_ascii (struct __gconv_step *step, unsigned char c)
+__gconv_btowc_ascii (struct __gconv_step *step, unsigned char c)
 {
   if (c < 0x80)
     return c;
diff --git a/wcsmbs/wcsmbsload.c b/wcsmbs/wcsmbsload.c
index 7b338b6775..61392e0b1e 100644
--- a/wcsmbs/wcsmbsload.c
+++ b/wcsmbs/wcsmbsload.c
@@ -36,7 +36,7 @@ static const struct __gconv_step to_wc =
   .__from_name = (char *) "ANSI_X3.4-1968//TRANSLIT",
   .__to_name = (char *) "INTERNAL",
   .__fct = __gconv_transform_ascii_internal,
-  .__btowc_fct = __gconv_btwoc_ascii,
+  .__btowc_fct = __gconv_btowc_ascii,
   .__init_fct = NULL,
   .__end_fct = NULL,
   .__min_needed_from = 1,
-- 
2.39.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-16 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-16 19:21 [PATCH v17 1/2] iconv: __gconv_btwoc_ascii -> __gconv_btowc_ascii наб
2023-07-16 19:23 ` [PATCH v17 2/2] POSIX locale covers every byte [BZ# 29511] наб

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).