mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Add multibyte support.
Provide an extenisible scheme of encoding conversion. As the first step, SJIS and BIG5 are supported. From now on multibyte people would be happy to use this psqlodbc driver. Eiji Tokuya e-tokuya@mail.sankyo-unyu.co.jp
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
* Comments: See "notice.txt" for copyright and license information.
|
||||
*
|
||||
*/
|
||||
/* Multibyte support Eiji Tokuya 2001-03-15 */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
@@ -34,6 +35,10 @@
|
||||
#include "dlg_specific.h"
|
||||
#include "convert.h"
|
||||
|
||||
#ifdef MULTIBYTE
|
||||
#include "multibyte.h"
|
||||
#endif
|
||||
|
||||
#ifndef BOOL
|
||||
#define BOOL int
|
||||
#endif
|
||||
@@ -507,8 +512,17 @@ char encoded_conn_settings[LARGE_REGISTRY_LEN];
|
||||
ci->show_oid_column,
|
||||
ci->fake_oid_index,
|
||||
ci->show_system_tables);
|
||||
|
||||
#ifdef MULTIBYTE
|
||||
check_client_encoding(ci->conn_settings);
|
||||
qlog(" conn_settings='%s',conn_encoding='%s'\n",
|
||||
ci->conn_settings,
|
||||
check_client_encoding(ci->conn_settings));
|
||||
#else
|
||||
qlog(" conn_settings='%s'\n",
|
||||
ci->conn_settings);
|
||||
#endif
|
||||
|
||||
qlog(" translation_dll='%s',translation_option='%s'\n",
|
||||
ci->translation_dll,
|
||||
ci->translation_option);
|
||||
|
||||
Reference in New Issue
Block a user