From: Jeff Davis Date: Sun, 26 Oct 2025 19:31:50 +0000 (-0700) Subject: Comment typo fixes: pg_wchar_t should be pg_wchar. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=371a302eecdc82274b0ae2967d18fd726a0aa6a1;p=thirdparty%2Fpostgresql.git Comment typo fixes: pg_wchar_t should be pg_wchar. Reported-by: Thomas Munro Discussion: https://postgr.es/m/CA+hUKGJ5Xh0KxLYXDZuPvw1_fHX=yuzb4xxtam1Cr6TPZZ1o+w@mail.gmail.com --- diff --git a/src/backend/utils/adt/pg_locale_libc.c b/src/backend/utils/adt/pg_locale_libc.c index 19a50662398..7ae778dc296 100644 --- a/src/backend/utils/adt/pg_locale_libc.c +++ b/src/backend/utils/adt/pg_locale_libc.c @@ -1144,7 +1144,7 @@ wcstombs_l(char *dest, const wchar_t *src, size_t n, locale_t loc) #endif /* - * These functions convert from/to libc's wchar_t, *not* pg_wchar_t. + * These functions convert from/to libc's wchar_t, *not* pg_wchar. * Therefore we keep them here rather than with the mbutils code. */ diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h index e08cb8228fa..683e1a0eef8 100644 --- a/src/include/utils/pg_locale.h +++ b/src/include/utils/pg_locale.h @@ -224,7 +224,7 @@ extern void icu_validate_locale(const char *loc_str); extern char *icu_language_tag(const char *loc_str, int elevel); extern void report_newlocale_failure(const char *localename); -/* This function converts from libc's wchar_t, *not* pg_wchar_t */ +/* This function converts from libc's wchar_t, *not* pg_wchar */ extern size_t wchar2char(char *to, const wchar_t *from, size_t tolen, locale_t loc);