mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Hi, here are the patches to enhance existing MB handling. This time
I have implemented a framework of encoding translation between the backend and the frontend. Also I have added a new variable setting command: SET CLIENT_ENCODING TO 'encoding'; Other features include: Latin1 support more 8 bit cleaness See doc/README.mb for more details. Note that the pacthes are against May 30 snapshot. Tatsuo Ishii
This commit is contained in:
@ -127,6 +127,9 @@ extern "C"
|
||||
# elif MB == UNICODE
|
||||
# define NONCHAR(c) ((c) > USHRT_MAX)
|
||||
# define NNONCHAR (CODEMAX-USHRT_MAX)
|
||||
# else /* assume 1 byte code such as ISO8859-1 */
|
||||
# define NONCHAR(c) ((c) > UCHAR_MAX)
|
||||
# define NNONCHAR (CODEMAX-UCHAR_MAX)
|
||||
# endif
|
||||
#else
|
||||
# define NONCHAR(c) ((c) > CHAR_MAX)
|
||||
|
Reference in New Issue
Block a user