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