aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/json.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2013-06-08 10:00:09 -0400
committerAndrew Dunstan <andrew@dunslane.net>2013-06-08 10:00:09 -0400
commitd535136b5d60b19f7ffa777b97ed301739c15a9d (patch)
treef799a0847c3ab87d2ddc0942ca18da89da9d9b66 /src/backend/utils/adt/json.c
parent94e3311b97448324d67ba9a527854271373329d9 (diff)
downloadpostgresql-d535136b5d60b19f7ffa777b97ed301739c15a9d.tar.gz
postgresql-d535136b5d60b19f7ffa777b97ed301739c15a9d.zip
Don't downcase non-ascii identifier chars in multi-byte encodings.
Long-standing code has called tolower() on identifier character bytes with the high bit set. This is clearly an error and produces junk output when the encoding is multi-byte. This patch therefore restricts this activity to cases where there is a character with the high bit set AND the encoding is single-byte. There have been numerous gripes about this, most recently from Martin Schäfer. Backpatch to all live releases.
Diffstat (limited to 'src/backend/utils/adt/json.c')
0 files changed, 0 insertions, 0 deletions