diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2000-10-30 10:41:05 +0000 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2000-10-30 10:41:05 +0000 |
commit | 1acf6f9c8e1af527b198f2047154f28d7be5c43c (patch) | |
tree | c723e1c302c945faa871b450a5ca5114a98f18ce /src/backend/utils/mb/common.c | |
parent | 0b10d35e2b0f588847f10e79fd693b8be5ad578a (diff) | |
download | postgresql-1acf6f9c8e1af527b198f2047154f28d7be5c43c.tar.gz postgresql-1acf6f9c8e1af527b198f2047154f28d7be5c43c.zip |
Add support for code conversion between Unicode and other encodings.
Supported encodings are: EUC_JP, EUC_CN, EUC_KR, EUC_TW, Shift JIS,
Big5, ISO8859-[1-5].
TODO: testings! and documentations...
Diffstat (limited to 'src/backend/utils/mb/common.c')
-rw-r--r-- | src/backend/utils/mb/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/utils/mb/common.c b/src/backend/utils/mb/common.c index 89f63ad2ec0..33773e20505 100644 --- a/src/backend/utils/mb/common.c +++ b/src/backend/utils/mb/common.c @@ -2,7 +2,7 @@ * This file contains some public functions * usable for both the backend and the frontend. * Tatsuo Ishii - * $Id: common.c,v 1.9 2000/06/13 07:35:15 tgl Exp $ */ + * $Id: common.c,v 1.10 2000/10/30 10:40:28 ishii Exp $ */ #include <stdlib.h> #include <string.h> @@ -19,6 +19,7 @@ #include "mb/pg_wchar.h" #include "utils/builtins.h" +#ifndef FRONTEND /* * convert encoding char to encoding symbol value. * case is ignored. @@ -97,6 +98,8 @@ PG_encoding_to_char(PG_FUNCTION_ARGS) PG_RETURN_NAME(pg_encoding_to_char(encoding)); } +#endif + /* returns the byte length of a multi-byte word for an encoding */ int pg_encoding_mblen(int encoding, const unsigned char *mbstr) |