Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
152a101f
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
152a101f
编写于
9月 17, 2004
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Allow WIN1250 as server encoding.
上级
04288408
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
30 deletion
+40
-30
doc/src/sgml/charset.sgml
doc/src/sgml/charset.sgml
+27
-17
src/backend/utils/mb/encnames.c
src/backend/utils/mb/encnames.c
+4
-4
src/backend/utils/mb/wchar.c
src/backend/utils/mb/wchar.c
+6
-6
src/include/mb/pg_wchar.h
src/include/mb/pg_wchar.h
+3
-3
未找到文件。
doc/src/sgml/charset.sgml
浏览文件 @
152a101f
<!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.4
4 2004/03/23 02:47:35 neilc
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/charset.sgml,v 2.4
5 2004/09/17 21:59:56 petere
Exp $ -->
<chapter id="charset">
<title>Localization</>
...
...
@@ -396,14 +396,22 @@ initdb --locale=sv_SE
<entry><literal>KOI8</literal></entry>
<entry><acronym>KOI</acronym>8-R(U)</entry>
</row>
<row>
<entry><literal>WIN</literal></entry>
<entry>Windows CP1251</entry>
</row>
<row>
<entry><literal>ALT</literal></entry>
<entry>Windows CP866</entry>
</row>
<row>
<entry><literal>WIN874</literal></entry>
<entry>Windows CP874 (Thai)</entry>
</row>
<row>
<entry><literal>WIN1250</literal></entry>
<entry>Windows CP1250</entry>
</row>
<row>
<entry><literal>WIN</literal></entry>
<entry>Windows CP1251</entry>
</row>
<row>
<entry><literal>WIN1256</literal></entry>
<entry>Windows CP1256 (Arabic)</entry>
...
...
@@ -412,10 +420,6 @@ initdb --locale=sv_SE
<entry><literal>TCVN</literal></entry>
<entry><acronym>TCVN</>-5712/Windows CP1258 (Vietnamese)</entry>
</row>
<row>
<entry><literal>WIN874</literal></entry>
<entry>Windows CP874 (Thai)</entry>
</row>
</tbody>
</tgroup>
</table>
...
...
@@ -677,14 +681,26 @@ $ <userinput>psql -l</userinput>
</entry>
</row>
<row>
<entry><literal>
WIN
</literal></entry>
<entry><literal>
ALT
</literal></entry>
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>,
<literal>ALT</literal>, <literal>KOI8</literal>,
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal>
</entry>
</row>
<row>
<entry><literal>ALT</literal></entry>
<entry><literal>WIN874</literal></entry>
<entry><literal>WIN874</literal>,
<literal>UNICODE</literal>
</entry>
</row>
<row>
<entry><literal>WIN1250</literal></entry>
<entry><literal>LATIN2</literal>, <literal>WIN1250</literal>,
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal>
</entry>
</row>
<row>
<entry><literal>WIN</literal></entry>
<entry><literal>ISO_8859_5</literal>, <literal>WIN</literal>,
<literal>ALT</literal>, <literal>KOI8</literal>,
<literal>UNICODE</literal>, <literal>MULE_INTERNAL</literal>
...
...
@@ -702,12 +718,6 @@ $ <userinput>psql -l</userinput>
<literal>UNICODE</literal>
</entry>
</row>
<row>
<entry><literal>WIN874</literal></entry>
<entry><literal>WIN874</literal>,
<literal>UNICODE</literal>
</entry>
</row>
</tbody>
</tgroup>
</table>
...
...
src/backend/utils/mb/encnames.c
浏览文件 @
152a101f
...
...
@@ -2,7 +2,7 @@
* Encoding names and routines for work with it. All
* in this file is shared bedween FE and BE.
*
* $PostgreSQL: pgsql/src/backend/utils/mb/encnames.c,v 1.1
8 2003/11/29 22:39:59 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/utils/mb/encnames.c,v 1.1
9 2004/09/17 21:59:57 petere
Exp $
*/
#ifdef FRONTEND
#include "postgres_fe.h"
...
...
@@ -340,6 +340,9 @@ pg_enc2name pg_enc2name_tbl[] =
{
"ISO_8859_8"
,
PG_ISO_8859_8
},
{
"WIN1250"
,
PG_WIN1250
},
{
"SJIS"
,
PG_SJIS
},
...
...
@@ -352,9 +355,6 @@ pg_enc2name pg_enc2name_tbl[] =
{
"UHC"
,
PG_UHC
},
{
"WIN1250"
,
PG_WIN1250
},
{
"GB18030"
,
PG_GB18030
}
...
...
src/backend/utils/mb/wchar.c
浏览文件 @
152a101f
/*
* conversion functions between pg_wchar and multibyte streams.
* Tatsuo Ishii
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.3
7 2004/08/29 05:06:51 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.3
8 2004/09/17 21:59:57 petere
Exp $
*
* WIN1250 client encoding updated by Pavel Behal
*
...
...
@@ -743,11 +743,11 @@ pg_wchar_tbl pg_wchar_table[] = {
{
pg_latin12wchar_with_len
,
pg_latin1_mblen
,
pg_latin1_dsplen
,
1
},
/* 25; ISO-8859-6 */
{
pg_latin12wchar_with_len
,
pg_latin1_mblen
,
pg_latin1_dsplen
,
1
},
/* 26; ISO-8859-7 */
{
pg_latin12wchar_with_len
,
pg_latin1_mblen
,
pg_latin1_dsplen
,
1
},
/* 27; ISO-8859-8 */
{
0
,
pg_sjis_mblen
,
pg_sjis_dsplen
,
2
},
/* 28; PG_SJIS
*/
{
0
,
pg_
big5_mblen
,
pg_big5_dsplen
,
2
},
/* 29; PG_BIG5
*/
{
0
,
pg_
gbk_mblen
,
pg_gbk_dsplen
,
2
},
/* 30; PG_GBK
*/
{
0
,
pg_
uhc_mblen
,
pg_uhc_dsplen
,
2
},
/* 31; PG_UHC
*/
{
pg_latin12wchar_with_len
,
pg_latin1_mblen
,
pg_latin1_dsplen
,
1
},
/* 32; PG_WIN1250
*/
{
pg_latin12wchar_with_len
,
pg_latin1_mblen
,
pg_latin1_dsplen
,
1
},
/* 28; PG_WIN1250
*/
{
0
,
pg_
sjis_mblen
,
pg_sjis_dsplen
,
2
},
/* 29; PG_SJIS
*/
{
0
,
pg_
big5_mblen
,
pg_big5_dsplen
,
2
},
/* 30; PG_BIG5
*/
{
0
,
pg_
gbk_mblen
,
pg_gbk_dsplen
,
2
},
/* 31; PG_GBK
*/
{
0
,
pg_uhc_mblen
,
pg_uhc_dsplen
,
2
},
/* 32; PG_UHC
*/
{
0
,
pg_gb18030_mblen
,
pg_gb18030_dsplen
,
2
}
/* 33; PG_GB18030 */
};
...
...
src/include/mb/pg_wchar.h
浏览文件 @
152a101f
/* $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.5
1 2004/08/29 05:06:56 momjian
Exp $ */
/* $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.5
2 2004/09/17 21:59:57 petere
Exp $ */
#ifndef PG_WCHAR_H
#define PG_WCHAR_H
...
...
@@ -177,19 +177,19 @@ typedef enum pg_enc
PG_ISO_8859_6
,
/* ISO-8859-6 */
PG_ISO_8859_7
,
/* ISO-8859-7 */
PG_ISO_8859_8
,
/* ISO-8859-8 */
PG_WIN1250
,
/* windows-1250 */
/* followings are for client encoding only */
PG_SJIS
,
/* Shift JIS (Winindows-932) */
PG_BIG5
,
/* Big5 (Windows-950) */
PG_GBK
,
/* GBK (Windows-936) */
PG_UHC
,
/* UHC (Windows-949) */
PG_WIN1250
,
/* windows-1250 */
PG_GB18030
,
/* GB18030 */
_PG_LAST_ENCODING_
/* mark only */
}
pg_enc
;
#define PG_ENCODING_BE_LAST PG_
ISO_8859_8
#define PG_ENCODING_BE_LAST PG_
WIN1250
#define PG_ENCODING_FE_LAST PG_GB18030
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录