1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-12 16:21:30 +03:00
postgres/src/backend/utils/mb/Unicode/utf8_to_win866.map
Peter Eisentraut 1b658473ea Add support for Windows codepages 1253, 1254, 1255, and 1257 and clean
up a bunch of the support utilities.

In src/backend/utils/mb/Unicode remove nearly duplicate copies of the
UCS_to_XXX perl script and replace with one version to handle all generic
files.  Update the Makefile so that it knows about all the map files.
This produces a slight difference in some of the map files, using a
uniform naming convention and not mapping the null character.

In src/backend/utils/mb/conversion_procs create a master utf8<->win
codepage function like the ISO 8859 versions instead of having a separate
handler for each conversion.

There is an externally visible change in the name of the win1258 to utf8
conversion.  According to the documentation notes, it was named
incorrectly and this changes it to a standard name.

Running the Unicode mapping perl scripts has shown some additional mapping
changes in koi8r and iso8859-7.
2006-02-18 16:15:23 +00:00

131 lines
2.6 KiB
Plaintext

static pg_utf_to_local ULmapWIN866[ 128 ] = {
{0xc2a0, 0x00ff},
{0xc2a4, 0x00fd},
{0xc2b0, 0x00f8},
{0xc2b7, 0x00fa},
{0xd081, 0x00f0},
{0xd084, 0x00f2},
{0xd087, 0x00f4},
{0xd08e, 0x00f6},
{0xd090, 0x0080},
{0xd091, 0x0081},
{0xd092, 0x0082},
{0xd093, 0x0083},
{0xd094, 0x0084},
{0xd095, 0x0085},
{0xd096, 0x0086},
{0xd097, 0x0087},
{0xd098, 0x0088},
{0xd099, 0x0089},
{0xd09a, 0x008a},
{0xd09b, 0x008b},
{0xd09c, 0x008c},
{0xd09d, 0x008d},
{0xd09e, 0x008e},
{0xd09f, 0x008f},
{0xd0a0, 0x0090},
{0xd0a1, 0x0091},
{0xd0a2, 0x0092},
{0xd0a3, 0x0093},
{0xd0a4, 0x0094},
{0xd0a5, 0x0095},
{0xd0a6, 0x0096},
{0xd0a7, 0x0097},
{0xd0a8, 0x0098},
{0xd0a9, 0x0099},
{0xd0aa, 0x009a},
{0xd0ab, 0x009b},
{0xd0ac, 0x009c},
{0xd0ad, 0x009d},
{0xd0ae, 0x009e},
{0xd0af, 0x009f},
{0xd0b0, 0x00a0},
{0xd0b1, 0x00a1},
{0xd0b2, 0x00a2},
{0xd0b3, 0x00a3},
{0xd0b4, 0x00a4},
{0xd0b5, 0x00a5},
{0xd0b6, 0x00a6},
{0xd0b7, 0x00a7},
{0xd0b8, 0x00a8},
{0xd0b9, 0x00a9},
{0xd0ba, 0x00aa},
{0xd0bb, 0x00ab},
{0xd0bc, 0x00ac},
{0xd0bd, 0x00ad},
{0xd0be, 0x00ae},
{0xd0bf, 0x00af},
{0xd180, 0x00e0},
{0xd181, 0x00e1},
{0xd182, 0x00e2},
{0xd183, 0x00e3},
{0xd184, 0x00e4},
{0xd185, 0x00e5},
{0xd186, 0x00e6},
{0xd187, 0x00e7},
{0xd188, 0x00e8},
{0xd189, 0x00e9},
{0xd18a, 0x00ea},
{0xd18b, 0x00eb},
{0xd18c, 0x00ec},
{0xd18d, 0x00ed},
{0xd18e, 0x00ee},
{0xd18f, 0x00ef},
{0xd191, 0x00f1},
{0xd194, 0x00f3},
{0xd197, 0x00f5},
{0xd19e, 0x00f7},
{0xe28496, 0x00fc},
{0xe28899, 0x00f9},
{0xe2889a, 0x00fb},
{0xe29480, 0x00c4},
{0xe29482, 0x00b3},
{0xe2948c, 0x00da},
{0xe29490, 0x00bf},
{0xe29494, 0x00c0},
{0xe29498, 0x00d9},
{0xe2949c, 0x00c3},
{0xe294a4, 0x00b4},
{0xe294ac, 0x00c2},
{0xe294b4, 0x00c1},
{0xe294bc, 0x00c5},
{0xe29590, 0x00cd},
{0xe29591, 0x00ba},
{0xe29592, 0x00d5},
{0xe29593, 0x00d6},
{0xe29594, 0x00c9},
{0xe29595, 0x00b8},
{0xe29596, 0x00b7},
{0xe29597, 0x00bb},
{0xe29598, 0x00d4},
{0xe29599, 0x00d3},
{0xe2959a, 0x00c8},
{0xe2959b, 0x00be},
{0xe2959c, 0x00bd},
{0xe2959d, 0x00bc},
{0xe2959e, 0x00c6},
{0xe2959f, 0x00c7},
{0xe295a0, 0x00cc},
{0xe295a1, 0x00b5},
{0xe295a2, 0x00b6},
{0xe295a3, 0x00b9},
{0xe295a4, 0x00d1},
{0xe295a5, 0x00d2},
{0xe295a6, 0x00cb},
{0xe295a7, 0x00cf},
{0xe295a8, 0x00d0},
{0xe295a9, 0x00ca},
{0xe295aa, 0x00d8},
{0xe295ab, 0x00d7},
{0xe295ac, 0x00ce},
{0xe29680, 0x00df},
{0xe29684, 0x00dc},
{0xe29688, 0x00db},
{0xe2968c, 0x00dd},
{0xe29690, 0x00de},
{0xe29691, 0x00b0},
{0xe29692, 0x00b1},
{0xe29693, 0x00b2},
{0xe296a0, 0x00fe}
};