Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
90a06dba
Commit
90a06dba
authored
Nov 12, 2002
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken GB18030 <--> UTF-8 conversion map
parent
5eb6de59
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126746 additions
and
126986 deletions
+126746
-126986
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
+24
-8
src/backend/utils/mb/Unicode/gb18030_to_utf8.map
src/backend/utils/mb/Unicode/gb18030_to_utf8.map
+63361
-63489
src/backend/utils/mb/Unicode/utf8_to_gb18030.map
src/backend/utils/mb/Unicode/utf8_to_gb18030.map
+63361
-63489
No files found.
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
View file @
90a06dba
...
...
@@ -2,7 +2,7 @@
#
# Copyright 2002 by Bill Huang
#
# $Id: UCS_to_GB18030.pl,v 1.
1 2002/06/13 08:28:55
ishii Exp $
# $Id: UCS_to_GB18030.pl,v 1.
2 2002/11/12 11:33:40
ishii Exp $
#
# Generate UTF-8 <--> GB18030 code conversion tables from
# map files provided by Unicode organization.
...
...
@@ -30,10 +30,18 @@ while( <FILE> ){
next
;
}
(
$u
,
$c
,
$rest
)
=
split
;
$u
tf
=
hex
(
$u
);
$u
cs
=
hex
(
$u
);
$code
=
hex
(
$c
);
if
(
$code
>=
0x80
&&
$ucs
>=
0x0080
){
$utf
=
&
ucs2utf
(
$ucs
);
if
(
$array
{
$utf
}
ne
""
){
printf
STDERR
"
Warning: duplicate unicode: %04x
\n
",
$ucs
;
next
;
}
$count
++
;
$array
{
$utf
}
=
(
$code
);
$array
{
$utf
}
=
$code
;
}
}
close
(
FILE
);
...
...
@@ -70,11 +78,19 @@ while( <FILE> ){
if
(
/^#/
){
next
;
}
(
$
u
,
$c
,
$rest
)
=
split
;
$u
tf
=
hex
(
$u
);
(
$
c
,
$u
,
$rest
)
=
split
;
$u
cs
=
hex
(
$u
);
$code
=
hex
(
$c
);
if
(
$code
>=
0x80
&&
$ucs
>=
0x0080
){
$utf
=
&
ucs2utf
(
$ucs
);
if
(
$array
{
$code
}
ne
""
){
printf
STDERR
"
Warning: duplicate code: %04x
\n
",
$ucs
;
next
;
}
$count
++
;
$array
{
$code
}
=
$utf
;
}
}
close
(
FILE
);
...
...
src/backend/utils/mb/Unicode/gb18030_to_utf8.map
View file @
90a06dba
This diff is collapsed.
Click to expand it.
src/backend/utils/mb/Unicode/utf8_to_gb18030.map
View file @
90a06dba
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment