postgresql/src
Tom Lane 8f8a5df694 Make initdb behave sanely when the selected locale has codeset "US-ASCII".
Per discussion, this should result in defaulting to SQL_ASCII encoding.
The original coding could not support that because it conflated selection
of SQL_ASCII encoding with not being able to determine the encoding.
Adjust pg_get_encoding_from_locale()'s API to distinguish these cases,
and fix callers appropriately.  Only initdb actually changes behavior,
since the other callers were perfectly content to consider these cases
equivalent.

Per bug #5178 from Boh Yap.  Not going to bother back-patching, since
no one has complained before and there's an easy workaround (namely,
specify the encoding you want).
2009-11-12 02:46:16 +00:00
..
backend Make initdb behave sanely when the selected locale has codeset "US-ASCII". 2009-11-12 02:46:16 +00:00
bin Make initdb behave sanely when the selected locale has codeset "US-ASCII". 2009-11-12 02:46:16 +00:00
include Remove pg_parse_string_token() --- not needed anymore. 2009-11-12 01:13:12 +00:00
interfaces Change "name" nonterminal in cursor-related productions to cursor_name. 2009-11-11 20:31:26 +00:00
makefiles Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
pl Remove plpgsql's separate lexer (finally!), in favor of using the core lexer 2009-11-12 00:13:00 +00:00
port Make initdb behave sanely when the selected locale has codeset "US-ASCII". 2009-11-12 02:46:16 +00:00
template Tweak configure to attempt to add -qnoansialias to CFLAGS whenever running 2009-02-11 20:02:40 +00:00
test Remove plpgsql's separate lexer (finally!), in favor of using the core lexer 2009-11-12 00:13:00 +00:00
timezone Fix a couple of issues in recent patch to print updates to postgresql.conf 2009-10-03 18:04:57 +00:00
tools Remove plpgsql's separate lexer (finally!), in favor of using the core lexer 2009-11-12 00:13:00 +00:00
tutorial 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
Makefile.global.in Build bzip2 tarball in dist target as well 2009-11-03 21:28:10 +00:00
Makefile.shlib Derived files that are shipped in the distribution used to be built in the 2009-08-28 20:26:19 +00:00
nls-global.mk Update of install-sh, mkinstalldirs, and associated configury 2009-08-26 22:24:44 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00