freebsd-nq/tools/test/iconv/ref/ISO-2022-JP-2004-rev
Gabor Kovesdan ad30f8e79b Add the BSD-licensed Citrus iconv to the base system with default off
setting. It can be built by setting the WITH_ICONV knob. While this
knob is unset, the library part, the binaries, the header file and
the metadata files will not be built or installed so it makes no impact
on the system if left turned off.

This work is based on the iconv implementation in NetBSD but a great
number of improvements and feature additions have been included:

- Some utilities have been added. There is a conversion table generator,
  which can compare conversion tables to reference data generated by
  GNU libiconv. This helps ensuring conversion compatibility.
- UTF-16 surrogate support and some endianness issues have been fixed.
- The rather chaotic Makefiles to build metadata have been refactored
  and cleaned up, now it is easy to read and it is also easier to add
  support for new encodings.
- A bunch of new encodings and encoding aliases have been added.
- Support for 1->2, 1->3 and 1->4 mappings, which is needed for
  transliterating with flying accents as GNU does, like "u.
- Lots of warnings have been fixed, the major part of the code is
  now WARNS=6 clean.
- New section 1 and section 5 manual pages have been added.
- Some GNU-specific calls have been implemented:
  iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into()
- Support for GNU's //IGNORE suffix has been added.
- The "-" argument for stdin is now recognized in iconv(1) as per POSIX.
- The Big5 conversion module has been fixed.
- The iconv.h header files is supposed to be compatible with the
  GNU version, i.e. sources should build with base iconv.h and
  GNU libiconv. It also includes a macro magic to deal with the
  char ** and const char ** incompatibility.
- GNU compatibility: "" or "char" means the current local
  encoding in use
- Various cleanups and style(9) fixes.

Approved by:	delphij (mentor)
Obtained from:	The NetBSD Project
Sponsored by:	Google Summer of Code 2009
2011-02-25 00:04:39 +00:00

619 lines
10 KiB
Plaintext

$FreeBSD$
0x0000 = 0x0000
0x0001 = 0x0001
0x0002 = 0x0002
0x0003 = 0x0003
0x0004 = 0x0004
0x0005 = 0x0005
0x0006 = 0x0006
0x0007 = 0x0007
0x0008 = 0x0008
0x0009 = 0x0009
0x000A = 0x000A
0x000B = 0x000B
0x000C = 0x000C
0x000D = 0x000D
0x000E = 0x000E
0x000F = 0x000F
0x0010 = 0x0010
0x0011 = 0x0011
0x0012 = 0x0012
0x0013 = 0x0013
0x0014 = 0x0014
0x0015 = 0x0015
0x0016 = 0x0016
0x0017 = 0x0017
0x0018 = 0x0018
0x0019 = 0x0019
0x001A = 0x001A
0x001B = 0x001B
0x001C = 0x001C
0x001D = 0x001D
0x001E = 0x001E
0x001F = 0x001F
0x0020 = 0x0020
0x0021 = 0x0021
0x0022 = 0x0022
0x0023 = 0x0023
0x0024 = 0x0024
0x0025 = 0x0025
0x0026 = 0x0026
0x0027 = 0x0027
0x0028 = 0x0028
0x0029 = 0x0029
0x002A = 0x002A
0x002B = 0x002B
0x002C = 0x002C
0x002D = 0x002D
0x002E = 0x002E
0x002F = 0x002F
0x0030 = 0x0030
0x0031 = 0x0031
0x0032 = 0x0032
0x0033 = 0x0033
0x0034 = 0x0034
0x0035 = 0x0035
0x0036 = 0x0036
0x0037 = 0x0037
0x0038 = 0x0038
0x0039 = 0x0039
0x003A = 0x003A
0x003B = 0x003B
0x003C = 0x003C
0x003D = 0x003D
0x003E = 0x003E
0x003F = 0x003F
0x0040 = 0x0040
0x0041 = 0x0041
0x0042 = 0x0042
0x0043 = 0x0043
0x0044 = 0x0044
0x0045 = 0x0045
0x0046 = 0x0046
0x0047 = 0x0047
0x0048 = 0x0048
0x0049 = 0x0049
0x004A = 0x004A
0x004B = 0x004B
0x004C = 0x004C
0x004D = 0x004D
0x004E = 0x004E
0x004F = 0x004F
0x0050 = 0x0050
0x0051 = 0x0051
0x0052 = 0x0052
0x0053 = 0x0053
0x0054 = 0x0054
0x0055 = 0x0055
0x0056 = 0x0056
0x0057 = 0x0057
0x0058 = 0x0058
0x0059 = 0x0059
0x005A = 0x005A
0x005B = 0x005B
0x005C = 0x005C
0x005D = 0x005D
0x005E = 0x005E
0x005F = 0x005F
0x0060 = 0x0060
0x0061 = 0x0061
0x0062 = 0x0062
0x0063 = 0x0063
0x0064 = 0x0064
0x0065 = 0x0065
0x0066 = 0x0066
0x0067 = 0x0067
0x0068 = 0x0068
0x0069 = 0x0069
0x006A = 0x006A
0x006B = 0x006B
0x006C = 0x006C
0x006D = 0x006D
0x006E = 0x006E
0x006F = 0x006F
0x0070 = 0x0070
0x0071 = 0x0071
0x0072 = 0x0072
0x0073 = 0x0073
0x0074 = 0x0074
0x0075 = 0x0075
0x0076 = 0x0076
0x0077 = 0x0077
0x0078 = 0x0078
0x0079 = 0x0079
0x007A = 0x007A
0x007B = 0x007B
0x007C = 0x007C
0x007D = 0x007D
0x007E = 0x007E
0x007F = 0x007F
0x00A5 = 0x5C4A281B
0x00B5 = 0x0075
0x00E6 = 0x5128241B
0x010A = 0x0043
0x010B = 0x0063
0x0110 = 0x0044
0x0114 = 0x0045
0x0115 = 0x0065
0x0116 = 0x0045
0x0117 = 0x0065
0x011E = 0x0047
0x011F = 0x0067
0x0120 = 0x0047
0x0121 = 0x0067
0x0122 = 0x0047
0x0123 = 0x0067
0x0126 = 0x0048
0x0128 = 0x497E
0x0129 = 0x697E
0x012C = 0x0049
0x012D = 0x0069
0x012E = 0x0049
0x012F = 0x0069
0x0130 = 0x0049
0x0131 = 0x0069
0x0132 = 0x4A49
0x0133 = 0x6A69
0x0136 = 0x004B
0x0137 = 0x006B
0x013B = 0x004C
0x013C = 0x006C
0x013F = 0x004C
0x0140 = 0x006C
0x0145 = 0x004E
0x0146 = 0x006E
0x0149 = 0x6E27
0x014E = 0x004F
0x014F = 0x006F
0x0156 = 0x0052
0x0157 = 0x0072
0x0166 = 0x0054
0x0167 = 0x0074
0x0168 = 0x557E
0x0169 = 0x757E
0x0172 = 0x0055
0x0173 = 0x0075
0x0174 = 0x575E
0x0175 = 0x775E
0x0176 = 0x595E
0x0177 = 0x795E
0x0178 = 0x5922
0x017F = 0x0073
0x0192 = 0x0066
0x01C7 = 0x4A4C
0x01C8 = 0x6A4C
0x01C9 = 0x6A6C
0x01CA = 0x4A4E
0x01CB = 0x6A4E
0x01CC = 0x6A6E
0x01F1 = 0x5A44
0x01F2 = 0x7A44
0x01F3 = 0x7A64
0x0218 = 0x0053
0x0219 = 0x0073
0x021A = 0x0054
0x021B = 0x0074
0x0254 = 0x5128241B
0x0259 = 0x5128241B
0x025A = 0x5128241B
0x028C = 0x5128241B
0x02BD = 0x0027
0x02C6 = 0x005E
0x02CB = 0x0060
0x02CD = 0x005F
0x02DC = 0x007E
0x02E5 = 0x5128241B
0x02E9 = 0x5128241B
0x1E02 = 0x0042
0x1E03 = 0x0062
0x1E0A = 0x0044
0x1E0B = 0x0064
0x1E1E = 0x0046
0x1E1F = 0x0066
0x1E40 = 0x004D
0x1E41 = 0x006D
0x1E56 = 0x0050
0x1E57 = 0x0070
0x1E60 = 0x0053
0x1E61 = 0x0073
0x1E6A = 0x0054
0x1E6B = 0x0074
0x1E80 = 0x5760
0x1E81 = 0x7760
0x1E84 = 0x5722
0x1E85 = 0x7722
0x1EF2 = 0x5960
0x1EF3 = 0x7960
0x2002 = 0x0020
0x2003 = 0x0020
0x2004 = 0x0020
0x2005 = 0x0020
0x2006 = 0x0020
0x2008 = 0x0020
0x2009 = 0x0020
0x200A = 0x0020
0x2011 = 0x002D
0x2012 = 0x002D
0x201B = 0x0027
0x201E = 0x0022
0x201F = 0x0022
0x2024 = 0x002E
0x2039 = 0x003C
0x203A = 0x003E
0x203E = 0x7E4A281B
0x2044 = 0x002F
0x20A8 = 0x7352
0x2100 = 0x632F61
0x2101 = 0x732F61
0x2102 = 0x0043
0x2105 = 0x6F2F63
0x2106 = 0x752F63
0x210A = 0x0067
0x210B = 0x0048
0x210C = 0x0048
0x210D = 0x0048
0x210E = 0x0068
0x2110 = 0x0049
0x2111 = 0x0049
0x2112 = 0x004C
0x2115 = 0x004E
0x2119 = 0x0050
0x211A = 0x0051
0x211B = 0x0052
0x211C = 0x0052
0x211D = 0x0052
0x2122 = 0x4D54
0x2124 = 0x005A
0x2126 = 0x6D684F
0x2128 = 0x005A
0x212C = 0x0042
0x212D = 0x0043
0x212E = 0x0065
0x212F = 0x0065
0x2130 = 0x0045
0x2131 = 0x0046
0x2133 = 0x004D
0x2134 = 0x006F
0x2139 = 0x0069
0x213B = 0x584146
0x2145 = 0x0044
0x2146 = 0x0064
0x2147 = 0x0065
0x2148 = 0x0069
0x2149 = 0x006A
0x215F = 0x2F3120
0x216C = 0x004C
0x216D = 0x0043
0x216E = 0x0044
0x216F = 0x004D
0x217C = 0x006C
0x217D = 0x0063
0x217E = 0x0064
0x217F = 0x006D
0x21D0 = 0x3D3C
0x2215 = 0x002F
0x2216 = 0x005C
0x2217 = 0x002A
0x2223 = 0x007C
0x2236 = 0x003A
0x223C = 0x007E
0x2264 = 0x3D3C
0x2265 = 0x3D3E
0x22D8 = 0x3C3C3C
0x22D9 = 0x3E3E3E
0x2408 = 0x5D53425B
0x2409 = 0x5D54485B
0x240A = 0x5D464C5B
0x240B = 0x5D54565B
0x240C = 0x5D46465B
0x240D = 0x5D52435B
0x240E = 0x5D4F535B
0x240F = 0x5D49535B
0x2419 = 0x5D4D455B
0x241C = 0x5D53465B
0x241D = 0x5D53475B
0x241E = 0x5D53525B
0x241F = 0x5D53555B
0x2420 = 0x5D50535B
0x2424 = 0x5D4C4E5B
0x2474 = 0x293128
0x2475 = 0x293228
0x2476 = 0x293328
0x2477 = 0x293428
0x2478 = 0x293528
0x2479 = 0x293628
0x247A = 0x293728
0x247B = 0x293828
0x247C = 0x293928
0x247D = 0x29303128
0x247E = 0x29313128
0x247F = 0x29323128
0x2480 = 0x29333128
0x2481 = 0x29343128
0x2482 = 0x29353128
0x2483 = 0x29363128
0x2484 = 0x29373128
0x2485 = 0x29383128
0x2486 = 0x29393128
0x2487 = 0x29303228
0x2488 = 0x2E31
0x2489 = 0x2E32
0x248A = 0x2E33
0x248B = 0x2E34
0x248C = 0x2E35
0x248D = 0x2E36
0x248E = 0x2E37
0x248F = 0x2E38
0x2490 = 0x2E39
0x2491 = 0x2E3031
0x2492 = 0x2E3131
0x2493 = 0x2E3231
0x2494 = 0x2E3331
0x2495 = 0x2E3431
0x2496 = 0x2E3531
0x2497 = 0x2E3631
0x2498 = 0x2E3731
0x2499 = 0x2E3831
0x249A = 0x2E3931
0x249B = 0x2E3032
0x249C = 0x296128
0x249D = 0x296228
0x249E = 0x296328
0x249F = 0x296428
0x24A0 = 0x296528
0x24A1 = 0x296628
0x24A2 = 0x296728
0x24A3 = 0x296828
0x24A4 = 0x296928
0x24A5 = 0x296A28
0x24A6 = 0x296B28
0x24A7 = 0x296C28
0x24A8 = 0x296D28
0x24A9 = 0x296E28
0x24AA = 0x296F28
0x24AB = 0x297028
0x24AC = 0x297128
0x24AD = 0x297228
0x24AE = 0x297328
0x24AF = 0x297428
0x24B0 = 0x297528
0x24B1 = 0x297628
0x24B2 = 0x297728
0x24B3 = 0x297828
0x24B4 = 0x297928
0x24B5 = 0x297A28
0x24B6 = 0x294128
0x24B7 = 0x294228
0x24B8 = 0x294328
0x24B9 = 0x294428
0x24BA = 0x294528
0x24BB = 0x294628
0x24BC = 0x294728
0x24BD = 0x294828
0x24BE = 0x294928
0x24BF = 0x294A28
0x24C0 = 0x294B28
0x24C1 = 0x294C28
0x24C2 = 0x294D28
0x24C3 = 0x294E28
0x24C4 = 0x294F28
0x24C5 = 0x295028
0x24C6 = 0x295128
0x24C7 = 0x295228
0x24C8 = 0x295328
0x24C9 = 0x295428
0x24CA = 0x295528
0x24CB = 0x295628
0x24CC = 0x295728
0x24CD = 0x295828
0x24CE = 0x295928
0x24CF = 0x295A28
0x24EA = 0x293028
0x2A74 = 0x3D3A3A
0x2A75 = 0x3D3D
0x2A76 = 0x3D3D3D
0x304B = 0x0000
0x304D = 0x0000
0x304F = 0x0000
0x3051 = 0x0000
0x3053 = 0x0000
0x30AB = 0x0000
0x30AD = 0x0000
0x30AF = 0x0000
0x30B1 = 0x0000
0x30B3 = 0x0000
0x30BB = 0x0000
0x30C4 = 0x0000
0x30C8 = 0x0000
0x31F7 = 0x5128241B
0x3250 = 0x455450
0x32CC = 0x6748
0x32CD = 0x677265
0x32CE = 0x5665
0x32CF = 0x44544C
0x3371 = 0x615068
0x3372 = 0x6164
0x3373 = 0x5541
0x3374 = 0x726162
0x3375 = 0x566F
0x3376 = 0x6370
0x3377 = 0x6D64
0x3378 = 0x325E6D64
0x3379 = 0x335E6D64
0x337A = 0x5549
0x3380 = 0x4170
0x3381 = 0x416E
0x3383 = 0x416D
0x3384 = 0x416B
0x3385 = 0x424B
0x3386 = 0x424D
0x3387 = 0x4247
0x3388 = 0x6C6163
0x3389 = 0x6C61636B
0x338A = 0x4670
0x338B = 0x466E
0x3390 = 0x7A48
0x3391 = 0x7A486B
0x3392 = 0x7A484D
0x3393 = 0x7A4847
0x3394 = 0x7A4854
0x3396 = 0x6C6D
0x3397 = 0x6C64
0x3398 = 0x6C6B
0x3399 = 0x6D66
0x339A = 0x6D6E
0x339F = 0x325E6D6D
0x33A0 = 0x325E6D63
0x33A2 = 0x325E6D6B
0x33A3 = 0x335E6D6D
0x33A4 = 0x335E6D63
0x33A5 = 0x335E6D
0x33A6 = 0x335E6D6B
0x33A7 = 0x732F6D
0x33A9 = 0x6150
0x33AA = 0x61506B
0x33AB = 0x61504D
0x33AC = 0x615047
0x33AD = 0x646172
0x33B0 = 0x7370
0x33B1 = 0x736E
0x33B3 = 0x736D
0x33B4 = 0x5670
0x33B5 = 0x566E
0x33B7 = 0x566D
0x33B8 = 0x566B
0x33B9 = 0x564D
0x33BA = 0x5770
0x33BB = 0x576E
0x33BD = 0x576D
0x33BE = 0x576B
0x33BF = 0x574D
0x33C2 = 0x2E6D2E61
0x33C3 = 0x7142
0x33C5 = 0x6463
0x33C6 = 0x676B2F43
0x33C7 = 0x2E6F43
0x33C8 = 0x4264
0x33C9 = 0x7947
0x33CA = 0x6168
0x33CC = 0x6E69
0x33CE = 0x4D4B
0x33CF = 0x746B
0x33D0 = 0x6D6C
0x33D1 = 0x6E6C
0x33D2 = 0x676F6C
0x33D3 = 0x786C
0x33D4 = 0x626D
0x33D5 = 0x6C696D
0x33D6 = 0x6C6F6D
0x33D7 = 0x4850
0x33D8 = 0x2E6D2E70
0x33D9 = 0x4D5050
0x33DA = 0x5250
0x33DB = 0x7273
0x33DC = 0x7653
0x33DD = 0x6257
0x33DE = 0x6D2F56
0x33DF = 0x6D2F41
0x33FF = 0x6C6167
0xFB00 = 0x6666
0xFB01 = 0x6966
0xFB02 = 0x6C66
0xFB03 = 0x696666
0xFB04 = 0x6C6666
0xFB05 = 0x7473
0xFB06 = 0x7473
0xFB29 = 0x002B
0xFE49 = 0x7E4A281B
0xFE4A = 0x7E4A281B
0xFE4B = 0x7E4A281B
0xFE4C = 0x7E4A281B
0xFE4D = 0x005F
0xFE4E = 0x005F
0xFE4F = 0x005F
0xFE50 = 0x002C
0xFE52 = 0x002E
0xFE54 = 0x003B
0xFE55 = 0x003A
0xFE56 = 0x003F
0xFE57 = 0x0021
0xFE59 = 0x0028
0xFE5A = 0x0029
0xFE5B = 0x007B
0xFE5C = 0x007D
0xFE5F = 0x0023
0xFE60 = 0x0026
0xFE61 = 0x002A
0xFE62 = 0x002B
0xFE63 = 0x002D
0xFE64 = 0x003C
0xFE65 = 0x003E
0xFE66 = 0x003D
0xFE68 = 0x005C
0xFE69 = 0x0024
0xFE6A = 0x0025
0xFE6B = 0x0040
0xFF61 = 0x2149281B
0xFF62 = 0x2249281B
0xFF63 = 0x2349281B
0xFF64 = 0x2449281B
0xFF65 = 0x2549281B
0xFF66 = 0x2649281B
0xFF67 = 0x2749281B
0xFF68 = 0x2849281B
0xFF69 = 0x2949281B
0xFF6A = 0x2A49281B
0xFF6B = 0x2B49281B
0xFF6C = 0x2C49281B
0xFF6D = 0x2D49281B
0xFF6E = 0x2E49281B
0xFF6F = 0x2F49281B
0xFF70 = 0x3049281B
0xFF71 = 0x3149281B
0xFF72 = 0x3249281B
0xFF73 = 0x3349281B
0xFF74 = 0x3449281B
0xFF75 = 0x3549281B
0xFF76 = 0x3649281B
0xFF77 = 0x3749281B
0xFF78 = 0x3849281B
0xFF79 = 0x3949281B
0xFF7A = 0x3A49281B
0xFF7B = 0x3B49281B
0xFF7C = 0x3C49281B
0xFF7D = 0x3D49281B
0xFF7E = 0x3E49281B
0xFF7F = 0x3F49281B
0xFF80 = 0x4049281B
0xFF81 = 0x4149281B
0xFF82 = 0x4249281B
0xFF83 = 0x4349281B
0xFF84 = 0x4449281B
0xFF85 = 0x4549281B
0xFF86 = 0x4649281B
0xFF87 = 0x4749281B
0xFF88 = 0x4849281B
0xFF89 = 0x4949281B
0xFF8A = 0x4A49281B
0xFF8B = 0x4B49281B
0xFF8C = 0x4C49281B
0xFF8D = 0x4D49281B
0xFF8E = 0x4E49281B
0xFF8F = 0x4F49281B
0xFF90 = 0x5049281B
0xFF91 = 0x5149281B
0xFF92 = 0x5249281B
0xFF93 = 0x5349281B
0xFF94 = 0x5449281B
0xFF95 = 0x5549281B
0xFF96 = 0x5649281B
0xFF97 = 0x5749281B
0xFF98 = 0x5849281B
0xFF99 = 0x5949281B
0xFF9A = 0x5A49281B
0xFF9B = 0x5B49281B
0xFF9C = 0x5C49281B
0xFF9D = 0x5D49281B
0xFF9E = 0x5E49281B
0xFF9F = 0x5F49281B