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

Commit7730f48

Browse files
committed
Teach UtfToLocal/LocalToUtf to support algorithmic encoding conversions.
Until now, these functions have only supported encoding conversions usinglookup tables, which is fine as long as there's not too many code pointsto convert. However, GB18030 expects all 1.1 million Unicode code pointsto be convertible, which would require a ridiculously-sized lookup table.Fortunately, a large fraction of those conversions can be expressed througharithmetic, ie the conversions are one-to-one in certain defined ranges.To support that, provide a callback function that is used after consultingthe lookup tables. (This patch doesn't actually change anything about theGB18030 conversion behavior, just provide infrastructure for fixing it.)Since this requires changing the APIs of UtfToLocal/LocalToUtf anyway,take the opportunity to rearrange their argument lists into what seemsto me a saner order. And beautify the call sites by using lengthof()instead of error-prone sizeof() arithmetic.In passing, also mark all the lookup tables used by these calls "const".This moves an impressive amount of stuff into the text segment, at leaston my machine, and is safer anyhow.
1 parent83e176e commit7730f48

File tree

108 files changed

+538
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+538
-408
lines changed

‎src/backend/utils/mb/Unicode/UCS_to_BIG5.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
$file =lc("utf8_to_big5.map");
9999
open(FILE,">$file") ||die("cannot open$file");
100-
print FILE"static pg_utf_to_local ULmapBIG5[$count ] = {\n";
100+
print FILE"staticconstpg_utf_to_local ULmapBIG5[$count ] = {\n";
101101

102102
for$index (sort {$a<=>$b }keys(%array))
103103
{
@@ -185,7 +185,7 @@
185185

186186
$file =lc("big5_to_utf8.map");
187187
open(FILE,">$file") ||die("cannot open$file");
188-
print FILE"static pg_local_to_utf LUmapBIG5[$count ] = {\n";
188+
print FILE"staticconstpg_local_to_utf LUmapBIG5[$count ] = {\n";
189189
for$index (sort {$a<=>$b }keys(%array))
190190
{
191191
$utf =$array{$index};

‎src/backend/utils/mb/Unicode/UCS_to_EUC_CN.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
$file ="utf8_to_euc_cn.map";
5757
open(FILE,">$file") ||die("cannot open$file");
58-
print FILE"static pg_utf_to_local ULmapEUC_CN[$count ] = {\n";
58+
print FILE"staticconstpg_utf_to_local ULmapEUC_CN[$count ] = {\n";
5959

6060
for$index (sort {$a<=>$b }keys(%array))
6161
{
@@ -109,7 +109,7 @@
109109

110110
$file ="euc_cn_to_utf8.map";
111111
open(FILE,">$file") ||die("cannot open$file");
112-
print FILE"static pg_local_to_utf LUmapEUC_CN[$count ] = {\n";
112+
print FILE"staticconstpg_local_to_utf LUmapEUC_CN[$count ] = {\n";
113113
for$index (sort {$a<=>$b }keys(%array))
114114
{
115115
$utf =$array{$index};

‎src/backend/utils/mb/Unicode/UCS_to_EUC_JIS_2004.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
print FILE"/*\n";
7373
print FILE" * This file was generated by UCS_to_EUC_JIS_2004.pl\n";
7474
print FILE" */\n";
75-
print FILE"static pg_utf_to_local ULmapEUC_JIS_2004[] = {\n";
75+
print FILE"staticconstpg_utf_to_local ULmapEUC_JIS_2004[] = {\n";
7676

7777
for$index (sort {$a<=>$b }keys(%array))
7878
{
@@ -133,7 +133,7 @@
133133
print FILE" * This file was generated by UCS_to_EUC_JIS_2004.pl\n";
134134
print FILE" */\n";
135135
print FILE
136-
"static pg_utf_to_local_combined ULmapEUC_JIS_2004_combined[] = {\n";
136+
"staticconstpg_utf_to_local_combined ULmapEUC_JIS_2004_combined[] = {\n";
137137

138138
for$index (sort {$acmp$b }keys(%array1))
139139
{
@@ -256,7 +256,7 @@
256256
print FILE"/*\n";
257257
print FILE" * This file was generated by UCS_to_EUC_JIS_2004.pl\n";
258258
print FILE" */\n";
259-
print FILE"static pg_local_to_utf LUmapEUC_JIS_2004[] = {\n";
259+
print FILE"staticconstpg_local_to_utf LUmapEUC_JIS_2004[] = {\n";
260260

261261
for$index (sort {$a<=>$b }keys(%array))
262262
{
@@ -283,7 +283,7 @@
283283
print FILE" * This file was generated by UCS_to_EUC_JIS_2004.pl\n";
284284
print FILE" */\n";
285285
print FILE
286-
"static pg_local_to_utf_combined LUmapEUC_JIS_2004_combined[] = {\n";
286+
"staticconstpg_local_to_utf_combined LUmapEUC_JIS_2004_combined[] = {\n";
287287

288288
for$index (sort {$a<=>$b }keys(%array1))
289289
{

‎src/backend/utils/mb/Unicode/UCS_to_EUC_JP.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136

137137
$file ="utf8_to_euc_jp.map";
138138
open(FILE,">$file") ||die("cannot open$file");
139-
print FILE"static pg_utf_to_local ULmapEUC_JP[$count ] = {\n";
139+
print FILE"staticconstpg_utf_to_local ULmapEUC_JP[$count ] = {\n";
140140

141141
for$index (sort {$a<=>$b }keys(%array))
142142
{
@@ -263,7 +263,7 @@
263263

264264
$file ="euc_jp_to_utf8.map";
265265
open(FILE,">$file") ||die("cannot open$file");
266-
print FILE"static pg_local_to_utf LUmapEUC_JP[$count ] = {\n";
266+
print FILE"staticconstpg_local_to_utf LUmapEUC_JP[$count ] = {\n";
267267
for$index (sort {$a<=>$b }keys(%array))
268268
{
269269
$utf =$array{$index};

‎src/backend/utils/mb/Unicode/UCS_to_EUC_KR.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
$file ="utf8_to_euc_kr.map";
5757
open(FILE,">$file") ||die("cannot open$file");
58-
print FILE"static pg_utf_to_local ULmapEUC_KR[$count ] = {\n";
58+
print FILE"staticconstpg_utf_to_local ULmapEUC_KR[$count ] = {\n";
5959

6060
for$index (sort {$a<=>$b }keys(%array))
6161
{
@@ -109,7 +109,7 @@
109109

110110
$file ="euc_kr_to_utf8.map";
111111
open(FILE,">$file") ||die("cannot open$file");
112-
print FILE"static pg_local_to_utf LUmapEUC_KR[$count ] = {\n";
112+
print FILE"staticconstpg_local_to_utf LUmapEUC_KR[$count ] = {\n";
113113
for$index (sort {$a<=>$b }keys(%array))
114114
{
115115
$utf =$array{$index};

‎src/backend/utils/mb/Unicode/UCS_to_EUC_TW.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
$file ="utf8_to_euc_tw.map";
7373
open(FILE,">$file") ||die("cannot open$file");
74-
print FILE"static pg_utf_to_local ULmapEUC_TW[$count ] = {\n";
74+
print FILE"staticconstpg_utf_to_local ULmapEUC_TW[$count ] = {\n";
7575

7676
for$index (sort {$a<=>$b }keys(%array))
7777
{
@@ -138,7 +138,7 @@
138138

139139
$file ="euc_tw_to_utf8.map";
140140
open(FILE,">$file") ||die("cannot open$file");
141-
print FILE"static pg_local_to_utf LUmapEUC_TW[$count ] = {\n";
141+
print FILE"staticconstpg_local_to_utf LUmapEUC_TW[$count ] = {\n";
142142
for$index (sort {$a<=>$b }keys(%array))
143143
{
144144
$utf =$array{$index};

‎src/backend/utils/mb/Unicode/UCS_to_GB18030.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
$file ="utf8_to_gb18030.map";
5454
open(FILE,">$file") ||die("cannot open$file");
55-
print FILE"static pg_utf_to_local ULmapGB18030[$count ] = {\n";
55+
print FILE"staticconstpg_utf_to_local ULmapGB18030[$count ] = {\n";
5656

5757
for$index (sort {$a<=>$b }keys(%array))
5858
{
@@ -106,7 +106,7 @@
106106

107107
$file ="gb18030_to_utf8.map";
108108
open(FILE,">$file") ||die("cannot open$file");
109-
print FILE"static pg_local_to_utf LUmapGB18030[$count ] = {\n";
109+
print FILE"staticconstpg_local_to_utf LUmapGB18030[$count ] = {\n";
110110
for$index (sort {$a<=>$b }keys(%array))
111111
{
112112
$utf =$array{$index};

‎src/backend/utils/mb/Unicode/UCS_to_SHIFT_JIS_2004.pl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
print FILE"/*\n";
7373
print FILE" * This file was generated by UCS_to_SHIFT_JIS_2004.pl\n";
7474
print FILE" */\n";
75-
print FILE"static pg_utf_to_local ULmapSHIFT_JIS_2004[] = {\n";
75+
print FILE"staticconstpg_utf_to_local ULmapSHIFT_JIS_2004[] = {\n";
7676

7777
for$index (sort {$a<=>$b }keys(%array))
7878
{
@@ -99,7 +99,7 @@
9999
print FILE" * This file was generated by UCS_to_SHIFT_JIS_2004.pl\n";
100100
print FILE" */\n";
101101
print FILE
102-
"static pg_utf_to_local_combined ULmapSHIFT_JIS_2004_combined[] = {\n";
102+
"staticconstpg_utf_to_local_combined ULmapSHIFT_JIS_2004_combined[] = {\n";
103103

104104
for$index (sort {$acmp$b }keys(%array1))
105105
{
@@ -185,7 +185,7 @@
185185
print FILE"/*\n";
186186
print FILE" * This file was generated by UCS_to_SHIFTJIS_2004.pl\n";
187187
print FILE" */\n";
188-
print FILE"static pg_local_to_utf LUmapSHIFT_JIS_2004[] = {\n";
188+
print FILE"staticconstpg_local_to_utf LUmapSHIFT_JIS_2004[] = {\n";
189189

190190
for$index (sort {$a<=>$b }keys(%array))
191191
{
@@ -212,7 +212,7 @@
212212
print FILE" * This file was generated by UCS_to_SHIFT_JIS_2004.pl\n";
213213
print FILE" */\n";
214214
print FILE
215-
"static pg_local_to_utf_combined LUmapSHIFT_JIS_2004_combined[] = {\n";
215+
"staticconstpg_local_to_utf_combined LUmapSHIFT_JIS_2004_combined[] = {\n";
216216

217217
for$index (sort {$a<=>$b }keys(%array1))
218218
{

‎src/backend/utils/mb/Unicode/UCS_to_SJIS.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
$file ="utf8_to_sjis.map";
7474
open(FILE,">$file") ||die("cannot open$file");
75-
print FILE"static pg_utf_to_local ULmapSJIS[$count ] = {\n";
75+
print FILE"staticconstpg_utf_to_local ULmapSJIS[$count ] = {\n";
7676

7777
for$index (sort {$a<=>$b }keys(%array))
7878
{
@@ -122,7 +122,7 @@
122122

123123
$file ="sjis_to_utf8.map";
124124
open(FILE,">$file") ||die("cannot open$file");
125-
print FILE"static pg_local_to_utf LUmapSJIS[$count ] = {\n";
125+
print FILE"staticconstpg_local_to_utf LUmapSJIS[$count ] = {\n";
126126
for$index (sort {$a<=>$b }keys(%array))
127127
{
128128
$utf =$array{$index};

‎src/backend/utils/mb/Unicode/UCS_to_most.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
$file =lc("utf8_to_${charset}.map");
9090
open(FILE,">$file") ||die("cannot open$file");
91-
print FILE"static pg_utf_to_local ULmap${charset}[$count ] = {\n";
91+
print FILE"staticconstpg_utf_to_local ULmap${charset}[$count ] = {\n";
9292

9393
for$index (sort {$a<=>$b }keys(%array))
9494
{
@@ -140,7 +140,7 @@
140140

141141
$file =lc("${charset}_to_utf8.map");
142142
open(FILE,">$file") ||die("cannot open$file");
143-
print FILE"static pg_local_to_utf LUmap${charset}[$count ] = {\n";
143+
print FILE"staticconstpg_local_to_utf LUmap${charset}[$count ] = {\n";
144144
for$index (sort {$a<=>$b }keys(%array))
145145
{
146146
$utf =$array{$index};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
static pg_local_to_utf LUmapBIG5[ 13717 ] = {
1+
staticconstpg_local_to_utf LUmapBIG5[ 13717 ] = {
22
{0xa140, 0xe38080},
33
{0xa141, 0xefbc8c},
44
{0xa142, 0xe38081},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/euc_cn_to_utf8.map */
22

3-
static pg_local_to_utf LUmapEUC_CN[ 7445 ] = {
3+
staticconstpg_local_to_utf LUmapEUC_CN[ 7445 ] = {
44
{0xa1a1, 0xe38080},
55
{0xa1a2, 0xe38081},
66
{0xa1a3, 0xe38082},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file was generated by UCS_to_EUC_JIS_2004.pl
33
*/
4-
static pg_local_to_utf LUmapEUC_JIS_2004[] = {
4+
staticconstpg_local_to_utf LUmapEUC_JIS_2004[] = {
55
{0x000000, 0x00000000},/* U+0000 <control> */
66
{0x000001, 0x00000001},/* U+0001 <control> */
77
{0x000002, 0x00000002},/* U+0002 <control> */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file was generated by UCS_to_EUC_JIS_2004.pl
33
*/
4-
static pg_local_to_utf_combined LUmapEUC_JIS_2004_combined[] = {
4+
staticconstpg_local_to_utf_combined LUmapEUC_JIS_2004_combined[] = {
55
{0x00a4f7, 0x00e3818b, 0x00e3829a},/* U+304B+309A [2000] */
66
{0x00a4f8, 0x00e3818d, 0x00e3829a},/* U+304D+309A [2000] */
77
{0x00a4f9, 0x00e3818f, 0x00e3829a},/* U+304F+309A [2000] */

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/euc_jp_to_utf8.map */
22

3-
static pg_local_to_utf LUmapEUC_JP[] = {
3+
staticconstpg_local_to_utf LUmapEUC_JP[] = {
44
{0x8ea1, 0xefbda1},
55
{0x8ea2, 0xefbda2},
66
{0x8ea3, 0xefbda3},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
static pg_local_to_utf LUmapEUC_KR[ 8227 ] = {
1+
staticconstpg_local_to_utf LUmapEUC_KR[ 8227 ] = {
22
{0xa1a1, 0xe38080},
33
{0xa1a2, 0xe38081},
44
{0xa1a3, 0xe38082},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/euc_tw_to_utf8.map */
22

3-
static pg_local_to_utf LUmapEUC_TW[ 23575 ] = {
3+
staticconstpg_local_to_utf LUmapEUC_TW[ 23575 ] = {
44
{0xa1a1, 0xe38080},
55
{0xa1a2, 0xefbc8c},
66
{0xa1a3, 0xe38081},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/gb18030_to_utf8.map */
22

3-
static pg_local_to_utf LUmapGB18030[ 63360 ] = {
3+
staticconstpg_local_to_utf LUmapGB18030[ 63360 ] = {
44
{0x8140, 0xe4b882},
55
{0x8141, 0xe4b884},
66
{0x8142, 0xe4b885},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/gbk_to_utf8.map */
22

3-
static pg_local_to_utf LUmapGBK[ 21792 ] = {
3+
staticconstpg_local_to_utf LUmapGBK[ 21792 ] = {
44
{0x0080, 0xe282ac},
55
{0x8140, 0xe4b882},
66
{0x8141, 0xe4b884},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_10_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_10[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_10[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_13_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_13[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_13[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_14_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_14[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_14[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_15_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_15[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_15[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_16_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_16[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_16[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_2_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_2[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_2[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_3_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_3[ 121 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_3[ 121 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_4_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_4[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_4[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_5_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_5[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_5[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_6_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_6[ 83 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_6[ 83 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_7_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_7[ 125 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_7[ 125 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_8_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_8[ 92 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_8[ 92 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* src/backend/utils/mb/Unicode/iso8859_9_to_utf8.map */
22

3-
static pg_local_to_utf LUmapISO8859_9[ 128 ] = {
3+
staticconstpg_local_to_utf LUmapISO8859_9[ 128 ] = {
44
{0x0080, 0xc280},
55
{0x0081, 0xc281},
66
{0x0082, 0xc282},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
static pg_local_to_utf LUmapJOHAB[ 17049 ] = {
1+
staticconstpg_local_to_utf LUmapJOHAB[ 17049 ] = {
22
{0x8444, 0xe384b3},
33
{0x8446, 0xe384b5},
44
{0x8447, 0xe384b6},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp