summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Davis2025-10-26 19:31:50 +0000
committerJeff Davis2025-10-26 19:31:50 +0000
commit371a302eecdc82274b0ae2967d18fd726a0aa6a1 (patch)
tree2f8f54bf79421ae8735083116fada2d8bae4a46b
parent39dcfda2d23ac39f14ecf4b83e01eae85d07d9e5 (diff)
Comment typo fixes: pg_wchar_t should be pg_wchar.
Reported-by: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/CA+hUKGJ5Xh0KxLYXDZuPvw1_fHX=yuzb4xxtam1Cr6TPZZ1o+w@mail.gmail.com
-rw-r--r--src/backend/utils/adt/pg_locale_libc.c2
-rw-r--r--src/include/utils/pg_locale.h2
2 files changed, 2 insertions, 2 deletions
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);