postgresql/src/fe_utils
Tom Lane c410af098c Mop up some no-longer-necessary hacks around printf %.*s format.
Commit 54cd4f045 added some kluges to work around an old glibc bug,
namely that %.*s could misbehave if glibc thought any characters in
the supplied string were incorrectly encoded.  Now that we use our
own snprintf.c implementation, we need not worry about that bug (even
if it still exists in the wild).  Revert a couple of particularly
ugly hacks, and remove or improve assorted comments.

Note that there can still be encoding-related hazards here: blindly
clipping at a fixed length risks producing wrongly-encoded output
if the clip splits a multibyte character.  However, code that's
doing correct multibyte-aware clipping doesn't really need a comment
about that, while code that isn't needs an explanation why not,
rather than a red-herring comment about an obsolete bug.

Discussion: https://postgr.es/m/279428.1593373684@sss.pgh.pa.us
2020-06-29 17:12:38 -04:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
Makefile Move frontend-side archive APIs from src/common/ to src/fe_utils/ 2020-06-11 15:48:46 +09:00
archive.c Move frontend-side archive APIs from src/common/ to src/fe_utils/ 2020-06-11 15:48:46 +09:00
cancel.c Rethink definition of cancel.c's CancelRequested flag. 2020-06-07 13:07:34 -04:00
conditional.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
mbprint.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
print.c Mop up some no-longer-necessary hacks around printf %.*s format. 2020-06-29 17:12:38 -04:00
psqlscan.l Reduce size of backend scanner's tables. 2020-01-13 15:04:31 -05:00
recovery_gen.c Fix bug in pg_basebackup -F plain -R. 2020-02-12 09:08:22 +09:00
simple_list.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
string_utils.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00