Allow unrecognized encoding names in locales, as long as they're the same.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Jan 2014 07:03:30 +0000 (02:03 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Jan 2014 07:03:52 +0000 (02:03 -0500)
commitcd3e0071b8c9e082f5fe903a019d4e474be98e57
tree75021933b229815da5e1755f40da671421557937
parentdb98b313296d1d50f357d58fbcb6572ed1ab018f
Allow unrecognized encoding names in locales, as long as they're the same.

The buildfarm says commit 58274728fb8e087049df67c0eee903d9743fdeda doesn't
work so well on Windows.  This is because the encoding part of Windows
locale names can be just a code page number, eg "1252", which we don't
consider to be a valid encoding name.  Add a check to accept encoding
parts that are case-insensitively string equal; this at least ensures
that the new code doesn't reject any cases that the old code allowed.
contrib/pg_upgrade/check.c