model-writtenrun 1707 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis proposed using char32_t for Unicode code points in #1, leaving pg_wchar for encoding-dependent representations and explicitly seeking clearer documentation rather than new type safety.
- Tatsuo Ishii suggested a dedicated pg_unicode name in #2, but Jeff explained the standard type's intended purpose in #3, and Thomas Munro favored adopting that standard name directly in #4.
- Thomas identified missed conversions, suggested char16_t for surrogates, and explained Apple's missing C uchar.h and the need to avoid redefining C++ keywords in #4; his separate report of misspelled pg_wchar_t comments landed as 371a302eec.
- Jeff incorporated the surrogate types, missing conversions, header detection, and fallback typedefs in #5, retaining local conversion helpers to document when pg_wchar represents Unicode.
- Thomas examined libc's encoding assumptions and possible EUC handling improvements in #6, while Tatsuo clarified PostgreSQL's EUC representation in #7; Jeff deferred broader representation changes and acknowledged an ICU issue with non-UTF8 input in #8.
- Thomas also questioned an ICU warning placed in the libc provider in #6, leading Jeff to move it into pg_locale_icu.c in 4da12e9e2e, as confirmed in #8.
- Peter Eisentraut endorsed the clarity improvement but requested direct type detection and removal of unnecessary UTF assertions in #9, which Jeff implemented in #10.
- Thomas explained why C configuration probes could not handle headers later compiled as C++ in #11, so Jeff restored the __cplusplus guard and documented it in #12, while reporting a newly exposed MinGW header conflict.
- The broader encoding discussion continued with Thomas's proposed encoding categories and conversion strategies in #13 and Jeff's preference to isolate libc-specific complexity in #14.
- Thomas supplied separate discussion sketches in #15 covering Windows classification overflow, explicit pg_wchar encoding schemes, EUC conversion, and wrapper cleanup, with experimental EUC results and unresolved regex probing and locale behavior.
- Peter accepted the clarified portability approach in #16, and Jeff resolved the MinGW conflict by moving uchar.h after port.h in #17.
- At the final message, Jeff planned to commit the Unicode type change and welcomed continued work on Thomas's sketches, requesting clearer surrogate assertions and noting unresolved ICU integration questions in #18; the main patch subsequently landed unchanged from #17 as 3853a6956c, while the broader sketches remained discussion work.