]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Comment typo fixes: pg_wchar_t should be pg_wchar.
authorJeff Davis <jdavis@postgresql.org>
Sun, 26 Oct 2025 19:31:50 +0000 (12:31 -0700)
committerJeff Davis <jdavis@postgresql.org>
Sun, 26 Oct 2025 19:31:50 +0000 (12:31 -0700)
Reported-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://postgr.es/m/CA+hUKGJ5Xh0KxLYXDZuPvw1_fHX=yuzb4xxtam1Cr6TPZZ1o+w@mail.gmail.com

src/backend/utils/adt/pg_locale_libc.c
src/include/utils/pg_locale.h

index 19a50662398a6aa62cfaec8eaf59332cd1118dd2..7ae778dc296673f070f736bb5f52a97db51980e1 100644 (file)
@@ -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.
  */
 
index e08cb8228fa34b448e69b2990b4ed187dfa53572..683e1a0eef837a9cfa137960d6184bc4e8b7d0eb 100644 (file)
@@ -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);