summaryrefslogtreecommitdiff
path: root/src/port/chklocale.c
AgeCommit message (Collapse)Author
2008-01-01Update copyrights in source tree to 2008.Bruce Momjian
2007-11-15pgindent run for 8.3.Bruce Momjian
2007-10-25Add new encoding aliases for Solaris, per Zdenek Kotala.Alvaro Herrera
2007-10-17Add missing entry for PG_WIN1250 encoding, per gripe from Pavel Stehule.Tom Lane
Also enable translation of PG_WIN874, which certainly seems to have an obvious translation now, though maybe it did not at the time this table's ancestor was created.
2007-10-10Add missing codepage numbers for Windows.Magnus Hagander
Dave Page
2007-10-03Teach chklocale.c how to extract encoding info from Windows localeTom Lane
names. ITAGAKI Takahiro
2007-09-29Teach chklocale.c about a few names for frontend-only encodings,Tom Lane
since this will allow initdb to reject attempts to initdb in a locale that uses such an encoding. We'll probably find out more such names during beta ...
2007-09-28On OS X, assume that an empty-string result for nl_langinfo(CODESET)Tom Lane
means UTF-8. Per examination of /usr/share/locale in 10.4.10.
2007-09-28Change initdb and CREATE DATABASE to actively reject attempts to createTom Lane
databases with encodings that are incompatible with the server's LC_CTYPE locale, when we can determine that (which we can on most modern platforms, I believe). C/POSIX locale is compatible with all encodings, of course, so there is still some usefulness to CREATE DATABASE's ENCODING option, but this will insulate us against all sorts of recurring complaints caused by mismatched settings. I moved initdb's existing LC_CTYPE-to-encoding mapping knowledge into a new src/port/ file so it could be shared by CREATE DATABASE.