Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cec2bb

Browse files
committed
BTW it does not add encodign it just patches existing one (KOI8) to
support two - KOI8-R and KOI8-U (latter is superset of the former ifnot to take to the account pseudographics)Andy Rysin
1 parentd05b4bd commit0cec2bb

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

‎doc/src/sgml/charset.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.7 2001/04/20 15:52:33 thomas Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/charset.sgml,v 2.8 2001/05/03 21:38:44 momjian Exp $ -->
22

33
<chapter id="charset">
44
<title>Localization</>
@@ -353,7 +353,7 @@ perl: warning: Falling back to the standard locale ("C").
353353
</row>
354354
<row>
355355
<entry>KOI8</entry>
356-
<entry>KOI8-R</entry>
356+
<entry>KOI8-R(U)</entry>
357357
</row>
358358
<row>
359359
<entry>WIN</entry>

‎src/backend/utils/mb/Unicode/KOI8_to_utf8.map

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,32 @@ static pg_local_to_utf LUmapKOI8[ 128 ] = {
3535
{0x00a1, 0xe29591},
3636
{0x00a2, 0xe29592},
3737
{0x00a3, 0xd191},
38-
{0x00a4,0xe29593},
38+
{0x00a4,0xd194},
3939
{0x00a5, 0xe29594},
40-
{0x00a6,0xe29595},
41-
{0x00a7,0xe29596},
40+
{0x00a6,0xd196},
41+
{0x00a7,0xd197},
4242
{0x00a8, 0xe29597},
4343
{0x00a9, 0xe29598},
4444
{0x00aa, 0xe29599},
4545
{0x00ab, 0xe2959a},
4646
{0x00ac, 0xe2959b},
47-
{0x00ad,0xe2959c},
47+
{0x00ad,0xd291},
4848
{0x00ae, 0xe2959d},
4949
{0x00af, 0xe2959e},
5050
{0x00b0, 0xe2959f},
5151
{0x00b1, 0xe295a0},
5252
{0x00b2, 0xe295a1},
5353
{0x00b3, 0xd081},
54-
{0x00b4,0xe295a2},
54+
{0x00b4,0xd084},
5555
{0x00b5, 0xe295a3},
56-
{0x00b6,0xe295a4},
57-
{0x00b7,0xe295a5},
56+
{0x00b6,0xd086},
57+
{0x00b7,0xd087},
5858
{0x00b8, 0xe295a6},
5959
{0x00b9, 0xe295a7},
6060
{0x00ba, 0xe295a8},
6161
{0x00bb, 0xe295a9},
6262
{0x00bc, 0xe295aa},
63-
{0x00bd,0xe295ab},
63+
{0x00bd,0xd290},
6464
{0x00be, 0xe295ac},
6565
{0x00bf, 0xc2a9},
6666
{0x00c0, 0xd18e},

‎src/backend/utils/mb/Unicode/utf8_to_KOI8.map

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ static pg_utf_to_local ULmap_KOI8[ 128 ] = {
66
{0xc2b7, 0x009e},
77
{0xc3b7, 0x009f},
88
{0xd081, 0x00b3},
9+
{0xd084, 0x00b4},
10+
{0xd086, 0x00b6},
11+
{0xd087, 0x00b7},
912
{0xd090, 0x00e1},
1013
{0xd091, 0x00e2},
1114
{0xd092, 0x00f7},
@@ -71,6 +74,11 @@ static pg_utf_to_local ULmap_KOI8[ 128 ] = {
7174
{0xd18e, 0x00c0},
7275
{0xd18f, 0x00d1},
7376
{0xd191, 0x00a3},
77+
{0xd194, 0x00a4},
78+
{0xd196, 0x00a6},
79+
{0xd197, 0x00a7},
80+
{0xd290, 0x00bd},
81+
{0xd291, 0x00ad},
7482
{0xe28899, 0x0095},
7583
{0xe2889a, 0x0096},
7684
{0xe28988, 0x0097},
@@ -92,31 +100,23 @@ static pg_utf_to_local ULmap_KOI8[ 128 ] = {
92100
{0xe29590, 0x00a0},
93101
{0xe29591, 0x00a1},
94102
{0xe29592, 0x00a2},
95-
{0xe29593, 0x00a4},
96103
{0xe29594, 0x00a5},
97-
{0xe29595, 0x00a6},
98-
{0xe29596, 0x00a7},
99104
{0xe29597, 0x00a8},
100105
{0xe29598, 0x00a9},
101106
{0xe29599, 0x00aa},
102107
{0xe2959a, 0x00ab},
103108
{0xe2959b, 0x00ac},
104-
{0xe2959c, 0x00ad},
105109
{0xe2959d, 0x00ae},
106110
{0xe2959e, 0x00af},
107111
{0xe2959f, 0x00b0},
108112
{0xe295a0, 0x00b1},
109113
{0xe295a1, 0x00b2},
110-
{0xe295a2, 0x00b4},
111114
{0xe295a3, 0x00b5},
112-
{0xe295a4, 0x00b6},
113-
{0xe295a5, 0x00b7},
114115
{0xe295a6, 0x00b8},
115116
{0xe295a7, 0x00b9},
116117
{0xe295a8, 0x00ba},
117118
{0xe295a9, 0x00bb},
118119
{0xe295aa, 0x00bc},
119-
{0xe295ab, 0x00bd},
120120
{0xe295ac, 0x00be},
121121
{0xe29680, 0x008b},
122122
{0xe29684, 0x008c},

‎src/include/mb/pg_wchar.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: pg_wchar.h,v 1.25 2001/03/22 04:00:49 momjian Exp $ */
1+
/* $Id: pg_wchar.h,v 1.26 2001/05/03 21:38:44 momjian Exp $ */
22

33
#ifndefPG_WCHAR_H
44
#definePG_WCHAR_H
@@ -28,7 +28,7 @@
2828
#defineLATIN7 13/* ISO-8859 Latin 7 */
2929
#defineLATIN8 14/* ISO-8859 Latin 8 */
3030
#defineLATIN9 15/* ISO-8859 Latin 9 */
31-
#defineKOI8 16/* KOI8-R */
31+
#defineKOI8 16/* KOI8-R/U */
3232
#defineWIN 17/* windows-1251 */
3333
#defineALT 18/* Alternativny Variant (MS-DOS CP866) */
3434
/* followings are for client encoding only */
@@ -68,6 +68,7 @@ typedef unsigned int pg_wchar;
6868
#defineLC_JISX0201K0x89/* Japanese 1 byte kana */
6969
#defineLC_JISX0201R0x8a/* Japanese 1 byte Roman */
7070
#defineLC_KOI8_R0x8c/* Cyrillic KOI8-R */
71+
#defineLC_KOI8_U0x8c/* Cyrillic KOI8-U */
7172
#defineLC_GB2312_800x91/* Chinese */
7273
#defineLC_JISX0208 0x92/* Japanese Kanji */
7374
#defineLC_KS56010x93/* Korean */

‎src/interfaces/odbc/multibyte.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#defineLATIN713/* ISO-8859 Latin 7 */
2222
#defineLATIN814/* ISO-8859 Latin 8 */
2323
#defineLATIN915/* ISO-8859 Latin 9 */
24-
#defineKOI816/* KOI8-R */
24+
#defineKOI816/* KOI8-R/U */
2525
#defineWIN17/* windows-1251 */
2626
#defineALT18/* Alternativny Variant (MS-DOS CP866) */
2727
#defineSJIS32/* Shift JIS */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp