1*16d86563SAlexander Pyhalov /* 2*16d86563SAlexander Pyhalov * CDDL HEADER START 3*16d86563SAlexander Pyhalov * 4*16d86563SAlexander Pyhalov * The contents of this file are subject to the terms of the 5*16d86563SAlexander Pyhalov * Common Development and Distribution License (the "License"). 6*16d86563SAlexander Pyhalov * You may not use this file except in compliance with the License. 7*16d86563SAlexander Pyhalov * 8*16d86563SAlexander Pyhalov * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE 9*16d86563SAlexander Pyhalov * or http://www.opensolaris.org/os/licensing. 10*16d86563SAlexander Pyhalov * See the License for the specific language governing permissions 11*16d86563SAlexander Pyhalov * and limitations under the License. 12*16d86563SAlexander Pyhalov * 13*16d86563SAlexander Pyhalov * When distributing Covered Code, include this CDDL HEADER in each 14*16d86563SAlexander Pyhalov * file and include the License file at src/OPENSOLARIS.LICENSE. 15*16d86563SAlexander Pyhalov * If applicable, add the following below this CDDL HEADER, with the 16*16d86563SAlexander Pyhalov * fields enclosed by brackets "[]" replaced with your own identifying 17*16d86563SAlexander Pyhalov * information: Portions Copyright [yyyy] [name of copyright owner] 18*16d86563SAlexander Pyhalov * 19*16d86563SAlexander Pyhalov * CDDL HEADER END 20*16d86563SAlexander Pyhalov */ 21*16d86563SAlexander Pyhalov /* 22*16d86563SAlexander Pyhalov * ICU License - ICU 1.8.1 and later 23*16d86563SAlexander Pyhalov * 24*16d86563SAlexander Pyhalov * COPYRIGHT AND PERMISSION NOTICE 25*16d86563SAlexander Pyhalov * 26*16d86563SAlexander Pyhalov * Copyright (c) 1995-2005 International Business Machines Corporation and others 27*16d86563SAlexander Pyhalov * All rights reserved. 28*16d86563SAlexander Pyhalov * 29*16d86563SAlexander Pyhalov * Permission is hereby granted, free of charge, to any person obtaining a 30*16d86563SAlexander Pyhalov * copy of this software and associated documentation files (the 31*16d86563SAlexander Pyhalov * "Software"), to deal in the Software without restriction, including 32*16d86563SAlexander Pyhalov * without limitation the rights to use, copy, modify, merge, publish, 33*16d86563SAlexander Pyhalov * distribute, and/or sell copies of the Software, and to permit persons 34*16d86563SAlexander Pyhalov * to whom the Software is furnished to do so, provided that the above 35*16d86563SAlexander Pyhalov * copyright notice(s) and this permission notice appear in all copies of 36*16d86563SAlexander Pyhalov * the Software and that both the above copyright notice(s) and this 37*16d86563SAlexander Pyhalov * permission notice appear in supporting documentation. 38*16d86563SAlexander Pyhalov * 39*16d86563SAlexander Pyhalov * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 40*16d86563SAlexander Pyhalov * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 41*16d86563SAlexander Pyhalov * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 42*16d86563SAlexander Pyhalov * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 43*16d86563SAlexander Pyhalov * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 44*16d86563SAlexander Pyhalov * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 45*16d86563SAlexander Pyhalov * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 46*16d86563SAlexander Pyhalov * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 47*16d86563SAlexander Pyhalov * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 48*16d86563SAlexander Pyhalov * 49*16d86563SAlexander Pyhalov * Except as contained in this notice, the name of a copyright holder 50*16d86563SAlexander Pyhalov * shall not be used in advertising or otherwise to promote the sale, use 51*16d86563SAlexander Pyhalov * or other dealings in this Software without prior written authorization 52*16d86563SAlexander Pyhalov * of the copyright holder. 53*16d86563SAlexander Pyhalov * 54*16d86563SAlexander Pyhalov * -------------------------------------------------------------------------- 55*16d86563SAlexander Pyhalov * All trademarks and registered trademarks mentioned herein are the property 56*16d86563SAlexander Pyhalov * of their respective owners. 57*16d86563SAlexander Pyhalov */ 58*16d86563SAlexander Pyhalov 59*16d86563SAlexander Pyhalov /* Translation table for iconv */ 60*16d86563SAlexander Pyhalov /* Copr (c) 1995,96 by Sun Microsystems, Inc. */ 61*16d86563SAlexander Pyhalov /* I'm mapping everything that can't be mapped to 5F - underscore in cp500 62*16d86563SAlexander Pyhalov and am leaving everything that's a correct map as lowercase (so 5f is a correct mapping of underscore) */ 63*16d86563SAlexander Pyhalov 64*16d86563SAlexander Pyhalov unsigned char __cp500_to_iso[256] = { 65*16d86563SAlexander Pyhalov 66*16d86563SAlexander Pyhalov /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ 67*16d86563SAlexander Pyhalov 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 68*16d86563SAlexander Pyhalov 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 69*16d86563SAlexander Pyhalov 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 70*16d86563SAlexander Pyhalov 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 0x5F, 71*16d86563SAlexander Pyhalov 72*16d86563SAlexander Pyhalov 0x20, 0xa0, 0xe2, 0xe4, 0xe0, 0xe1, 0xe3, 0xe5, 0xe7, 0xf1, 0x5b, 0x2e, 0x3c, 0x28, 0x2b, 0x21, 73*16d86563SAlexander Pyhalov 0x26, 0xe9, 0xea, 0xeb, 0xe8, 0xed, 0xee, 0xef, 0xec, 0xdf, 0x5d, 0x24, 0x2a, 0x29, 0x3b, 0x5e, 74*16d86563SAlexander Pyhalov 0x2d, 0x2f, 0xc2, 0xc4, 0xc0, 0xc1, 0xc3, 0xc5, 0xc7, 0xd1, 0xa6, 0x2c, 0x25, 0x5f, 0x3e, 0x3f, 75*16d86563SAlexander Pyhalov 0xf8, 0xc9, 0xca, 0xcb, 0xc8, 0xcd, 0xce, 0xcf, 0xcc, 0x60, 0x3a, 0x23, 0x40, 0x27, 0x3d, 0x22, 76*16d86563SAlexander Pyhalov 77*16d86563SAlexander Pyhalov 0xd8, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0xab, 0xbb, 0xf0, 0xfd, 0xde, 0xb1, 78*16d86563SAlexander Pyhalov 0xb0, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 0x70, 0x71, 0x72, 0xaa, 0xba, 0xe6, 0xb8, 0xc6, 0xa4, 79*16d86563SAlexander Pyhalov 0xb5, 0x7e, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7a, 0xa1, 0xbf, 0xd0, 0xdd, 0xfe, 0xae, 80*16d86563SAlexander Pyhalov 0xa2, 0xa3, 0xa5, 0xb7, 0xa9, 0xa7, 0xb6, 0xbc, 0xbd, 0xbe, 0xac, 0x7c, 0xaf, 0xa8, 0xb4, 0xd7, 81*16d86563SAlexander Pyhalov 82*16d86563SAlexander Pyhalov 0x7b, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0xad, 0xf4, 0xf6, 0xf2, 0xf3, 0xf5, 83*16d86563SAlexander Pyhalov 0x7d, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0xb9, 0xfb, 0xfc, 0xf9, 0xfa, 0xff, 84*16d86563SAlexander Pyhalov 0x5c, 0xf7, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0xb2, 0xd4, 0xd6, 0xd2, 0xd3, 0xd5, 85*16d86563SAlexander Pyhalov 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0xb3, 0xdb, 0xdc, 0xd9, 0xda, 0x5F 86*16d86563SAlexander Pyhalov 87*16d86563SAlexander Pyhalov }; 88