]> granicus.if.org Git - postgresql/commit
Modify locale code to defend against possibility that it was compiled
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 Nov 2000 03:55:51 +0000 (03:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 18 Nov 2000 03:55:51 +0000 (03:55 +0000)
commit75c147e7534a8511e65547ef6f206d0f5211d5e4
tree5cd12431662bd854318b504a07337a34b4a26409
parentaa21da208c8988ac3dd34e14ff4c379101063f51
Modify locale code to defend against possibility that it was compiled
with an -fsigned-char/-funsigned-char setting opposite to that of libc,
thus breaking the convention that 'undefined' values returned by
localeconv() are represented by CHAR_MAX.  It is sheer stupidity that
gcc even has such a switch --- it's just as bad as the structure-packing
control switches offered by the more brain-dead PC compilers --- and
as for the behavior of Linux distribution vendors who set RPM_OPT_FLAGS
differently from the way they built libc, well, words fail me...
src/backend/utils/adt/cash.c