- Notifications
You must be signed in to change notification settings - Fork5.1k
Commitcfa6cd2
committed
Generate GB18030 mappings from the Unicode Consortium's UCM file
Previously we built the .map files for GB18030 (version 2000) from anXML file. The 2022 version for this encoding is only available as aUnicode Character Mapping (UCM) file, so as preparatory refactoringswitch to this format as the source for building version 2000.As we do with most input files for the conversion mappings, downloadthe file on demand. In order to generate the same mappings we havenow, we must download from a previous upstream commit, rather thanthe head since the latter contains a correction not present in ourcurrent .map files.The XML file is still used by EUC_CN, so we cannot delete it from ourrepository. GB18030 is a superset of EUC_CN, so it may be possible tobuild EUC_CN from the same UCM file, but that is left for future work.Author: Chao Li <lic@highgo.com>Discussion:https://postgr.es/m/966d9fc.169.198741fe60b.Coremail.jiaoshuntian%40highgo.com1 parente56a601 commitcfa6cd2
File tree
3 files changed
+29
-11
lines changed- src/backend/utils/mb
- Unicode
- conversion_procs/utf8_and_gb18030
3 files changed
+29
-11
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 |
| |
82 | 85 |
| |
83 | 86 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
| 8 | + | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
13 |
| - | |
14 |
| - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| |||
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
25 |
| - | |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
33 |
| - | |
34 |
| - | |
35 |
| - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
36 | 46 |
| |
37 | 47 |
| |
38 | 48 |
| |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
127 |
| - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 |
| |
129 | 134 |
| |
130 | 135 |
| |
|
0 commit comments
Comments
(0)