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
346a721e
Commit
346a721e
authored
Feb 16, 2010
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove personal copyright now that file has been rewritten using
existing *.pl conversion script. Andreas 'ads' Scherbaum
parent
93a57c3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
+9
-11
No files found.
src/backend/utils/mb/Unicode/UCS_to_GB18030.pl
View file @
346a721e
#! /usr/bin/perl
#
# Copyright
2002 by Bill Huang
# Copyright
(c) 2007-2010, PostgreSQL Global Development Group
#
# $
PostgreSQL: pgsql/src/backend/utils/mb/Unicode/UCS_to_GB18030.pl,v 1.5 2005/03/07 04:30:52
momjian Exp $
# $
Id: UCS_to_GB18030.pl,v 1.6 2010/02/16 20:35:07
momjian Exp $
#
# Generate UTF-8 <--> GB18030 code conversion tables from
# map files provided by Unicode organization.
# Unfortunately it is prohibited by the organization
# to distribute the map files. So if you try to use this script,
# you have to obtain ISO10646-GB18030.TXT from
# the organization's ftp site.
# "ISO10646-GB18030.TXT"
#
# ISO10646-GB18030.TXT format:
# GB18030 code in hex
# UCS-2 code in hex
# # and Unicode name (not used in this script)
# file format:
# GB18030 hex code
# UCS-2 hex code
require
"
ucs2utf.pl
";
# first generate UTF-8 --> GB18030 table
$in_file
=
"
ISO10646-GB18030.TXT
";
...
...
@@ -45,6 +41,7 @@ while( <FILE> ){
}
close
(
FILE
);
#
# first, generate UTF8 --> GB18030 table
#
...
...
@@ -66,6 +63,7 @@ for $index ( sort {$a <=> $b} keys( %array ) ){
print
FILE
"
};
\n
";
close
(
FILE
);
#
# then generate GB18030 --> UTF8 table
#
...
...
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