linux/fs/nls/nls_cp866.c
<<
"v3. /spatio /formio a "v3. href="../linux+v3.7.2/fs/nls/nls_cp866.c">"v3. img src="../.static/gfx/right.png" alt=">>">"v /spatio"v spat class="lxr_search">"v3."v3. input typaluhidden" namalunavtarget" on valu">"v3. input typalutext" namalusearch" idlusearch">"v3. buttptitypalusubmit">Search"v3. Prefso /a>"v /spatio3. /divio3. form ac/opt="ajax+*" method="post" onsubmit="return false;">"v input typaluhidden" namaluajax_lookup" idluajax_lookup" on valu">"3. /formio"3. div class="headingbottpm">o div idlufile_contents"i
   1
/a>
spat class="comment">/*
/spatio   2
/a>
spat class="comment"> * linux/fs/nls/nls_cp866.c
/spatio   3
/a>
spat class="comment"> *
/spatio   4
/a>
spat class="comment"> * Charset cp866 transla   5
/a>
spat class="comment"> * Generated autpmatically from the Unicode and charset
/spatio   6
/a>
spat class="comment"> * tables from the Unicode Organiza   7
/a>
spat class="comment"> * The Unicode to charset table has only exac/ mappings.
/spatio   8
/a>
spat class="comment"> */
/spatio   9
/a>"  18.1a>#include <linux/module.h.1a>>"  11.1a>#include <linux/kernel.h.1a>>"  12.1a>#include <linux/string.h.1a>>"  13.1a>#include <linux/nls.h.1a>>"  14.1a>#include <linux/errno.h.1a>>"  15
/a>"  16
/a>static const 
a href="+code=wchar_t" class="sref">wchar_t
/a> 
a href="+code=charset2uni" class="sref">charset2uni
/a>[256] = {"  17
/a>        
spat class="comment">/* 0x00*/
/spatio  18
/a>        0x0000, 0x0001, 0x0002, 0x0003,o  19
/a>        0x0004, 0x0005, 0x0006, 0x0007,o  20
/a>        0x0008, 0x0009, 0x000a, 0x000b,o  21
/a>        0x000c, 0x000d, 0x000e, 0x000f,o  22
/a>        
spat class="comment">/* 0x10*/
/spatio  23
/a>        0x0010, 0x0011, 0x0012, 0x0013,o  24
/a>        0x0014, 0x0015, 0x0016, 0x0017,o  25
/a>        0x0018, 0x0019, 0x001a, 0x001b,o  26
/a>        0x001c, 0x001d, 0x001e, 0x001f,o  27
/a>        
spat class="comment">/* 0x20*/
/spatio  28
/a>        0x0020, 0x0021, 0x0022, 0x0023,o  29
/a>        0x0024, 0x0025, 0x0026, 0x0027,o  30
/a>        0x0028, 0x0029, 0x002a, 0x002b,o  31
/a>        0x002c, 0x002d, 0x002e, 0x002f,o  32
/a>        
spat class="comment">/* 0x30*/
/spatio  33
/a>        0x0030, 0x0031, 0x0032, 0x0033,o  34
/a>        0x0034, 0x0035, 0x0036, 0x0037,o  35
/a>        0x0038, 0x0039, 0x003a, 0x003b,o  36
/a>        0x003c, 0x003d, 0x003e, 0x003f,o  37
/a>        
spat class="comment">/* 0x40*/
/spatio  38
/a>        0x0040, 0x0041, 0x0042, 0x0043,o  39
/a>        0x0044, 0x0045, 0x0046, 0x0047,o  40
/a>        0x0048, 0x0049, 0x004a, 0x004b,o  41
/a>        0x004c, 0x004d, 0x004e, 0x004f,o  42
/a>        
spat class="comment">/* 0x50*/
/spatio  43
/a>        0x0050, 0x0051, 0x0052, 0x0053,o  44
/a>        0x0054, 0x0055, 0x0056, 0x0057,o  45
/a>        0x0058, 0x0059, 0x005a, 0x005b,o  46
/a>        0x005c, 0x005d, 0x005e, 0x005f,o  47
/a>        
spat class="comment">/* 0x60*/
/spatio  48
/a>        0x0060, 0x0061, 0x0062, 0x0063,o  49
/a>        0x0064, 0x0065, 0x0066, 0x0067,o  50
/a>        0x0068, 0x0069, 0x006a, 0x006b,o  51
/a>        0x006c, 0x006d, 0x006e, 0x006f,o  52
/a>        
spat class="comment">/* 0x70*/
/spatio  53
/a>        0x0070, 0x0071, 0x0072, 0x0073,o  54
/a>        0x0074, 0x0075, 0x0076, 0x0077,o  55
/a>        0x0078, 0x0079, 0x007a, 0x007b,o  56
/a>        0x007c, 0x007d, 0x007e, 0x007f,o  57
/a>        
spat class="comment">/* 0x80*/
/spatio  58
/a>        0x0410, 0x0411, 0x0412, 0x0413,o  59
/a>        0x0414, 0x0415, 0x0416, 0x0417,o  60
/a>        0x0418, 0x0419, 0x041a, 0x041b,o  61
/a>        0x041c, 0x041d, 0x041e, 0x041f,o  62
/a>        
spat class="comment">/* 0x90*/
/spatio  63
/a>        0x0420, 0x0421, 0x0422, 0x0423,o  64
/a>        0x0424, 0x0425, 0x0426, 0x0427,o  65
/a>        0x0428, 0x0429, 0x042a, 0x042b,o  66
/a>        0x042c, 0x042d, 0x042e, 0x042f,o  67
/a>        
spat class="comment">/* 0xa0*/
/spatio  68
/a>        0x0430, 0x0431, 0x0432, 0x0433,o  69
/a>        0x0434, 0x0435, 0x0436, 0x0437,o  70
/a>        0x0438, 0x0439, 0x043a, 0x043b,o  71
/a>        0x043c, 0x043d, 0x043e, 0x043f,o  72
/a>        
spat class="comment">/* 0xb0*/
/spatio  73
/a>        0x2591, 0x2592, 0x2593, 0x2502,o  74
/a>        0x2524, 0x2561, 0x2562, 0x2556,o  75
/a>        0x2555, 0x2563, 0x2551, 0x2557,o  76
/a>        0x255d, 0x255c, 0x255b, 0x2510,o  77
/a>        
spat class="comment">/* 0xc0*/
/spatio  78
/a>        0x2514, 0x2534, 0x252c, 0x251c,o  79
/a>        0x2500, 0x253c, 0x255e, 0x255f,o  80
/a>        0x255a, 0x2554, 0x2569, 0x2566,o  81
/a>        0x2560, 0x2550, 0x256c, 0x2567,o  82
/a>        
spat class="comment">/* 0xd0*/
/spatio  83
/a>        0x2568, 0x2564, 0x2565, 0x2559,o  84
/a>        0x2558, 0x2552, 0x2553, 0x256b,o  85
/a>        0x256a, 0x2518, 0x250c, 0x2588,o  86
/a>        0x2584, 0x258c, 0x2590, 0x2580,o  87
/a>        
spat class="comment">/* 0xe0*/
/spatio  88
/a>        0x0440, 0x0441, 0x0442, 0x0443,o  89
/a>        0x0444, 0x0445, 0x0446, 0x0447,o  90
/a>        0x0448, 0x0449, 0x044a, 0x044b,o  91
/a>        0x044c, 0x044d, 0x044e, 0x044f,o  92
/a>        
spat class="comment">/* 0xf0*/
/spatio  93
/a>        0x0401, 0x0451, 0x0404, 0x0454,o  94
/a>        0x0407, 0x0457, 0x040e, 0x045e,o  95
/a>        0x00b0, 0x2219, 0x00b7, 0x221a,o  96
/a>        0x2116, 0x00a4, 0x25a0, 0x00a0,o  97
/a>};"  98
/a>"  99
/a>static const unsigned char 
a href="+code=page00" class="sref">page00
/a>[256] = {" 100
/a>        0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
spat class="comment">/* 0x00-0x07 */
/spatio 101
/a>        0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 
spat class="comment">/* 0x08-0x0f */
/spatio 102
/a>        0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 
spat class="comment">/* 0x10-0x17 */
/spatio 103
/a>        0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 
spat class="comment">/* 0x18-0x1f */
/spatio 104
/a>        0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 
spat class="comment">/* 0x20-0x27 */
/spatio 105
/a>        0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 
spat class="comment">/* 0x28-0x2f */
/spatio 106
/a>        0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 
spat class="comment">/* 0x30-0x37 */
/spatio 107
/a>        0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 
spat class="comment">/* 0x38-0x3f */
/spatio 108
/a>        0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 
spat class="comment">/* 0x40-0x47 */
/spatio 109
/a>        0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 
spat class="comment">/* 0x48-0x4f */
/spatio 110
/a>        0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 
spat class="comment">/* 0x50-0x57 */
/spatio 111
/a>        0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 
spat class="comment">/* 0x58-0x5f */
/spatio 112
/a>        0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 
spat class="comment">/* 0x60-0x67 */
/spatio 113
/a>        0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 
spat class="comment">/* 0x68-0x6f */
/spatio 114
/a>        0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 
spat class="comment">/* 0x70-0x77 */
/spatio 115
/a>        0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 
spat class="comment">/* 0x78-0x7f */
/spatio 116
/a>o 117
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x80-0x87 */
/spatio 118
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x88-0x8f */
/spatio 119
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x90-0x97 */
/spatio 120
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x98-0x9f */
/spatio 121
/a>        0xff, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x00, 0x00, 
spat class="comment">/* 0xa0-0xa7 */
/spatio 122
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0xa8-0xaf */
/spatio 123
/a>        0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfa, 
spat class="comment">/* 0xb0-0xb7 */
/spatio 124
/a>};" 125
/a>" 126
/a>static const unsigned char 
a href="+code=page04" class="sref">page04
/a>[256] = {" 127
/a>        0x00, 0xf0, 0x00, 0x00, 0xf2, 0x00, 0x00, 0xf4, 
spat class="comment">/* 0x00-0x07 */
/spatio 128
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf6, 0x00, 
spat class="comment">/* 0x08-0x0f */
/spatio 129
/a>        0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 
spat class="comment">/* 0x10-0x17 */
/spatio 130
/a>        0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 
spat class="comment">/* 0x18-0x1f */
/spatio 131
/a>        0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 
spat class="comment">/* 0x20-0x27 */
/spatio 132
/a>        0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, 
spat class="comment">/* 0x28-0x2f */
/spatio 133
/a>        0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 
spat class="comment">/* 0x30-0x37 */
/spatio 134
/a>        0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 
spat class="comment">/* 0x38-0x3f */
/spatio 135
/a>        0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 
spat class="comment">/* 0x40-0x47 */
/spatio 136
/a>        0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 
spat class="comment">/* 0x48-0x4f */
/spatio 137
/a>        0x00, 0xf1, 0x00, 0x00, 0xf3, 0x00, 0x00, 0xf5, 
spat class="comment">/* 0x50-0x57 */
/spatio 138
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf7, 0x00, 
spat class="comment">/* 0x58-0x5f */
/spatio 139
/a>};" 140
/a>" 141
/a>static const unsigned char 
a href="+code=page21" class="sref">page21
/a>[256] = {" 142
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x00-0x07 */
/spatio 143
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x08-0x0f */
/spatio 144
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0x00, 
spat class="comment">/* 0x10-0x17 */
/spatio 145
/a>};" 146
/a>o 147
/a>static const unsigned char 
a href="+code=page22" class="sref">page22
/a>[256] = {" 148
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x00-0x07 */
/spatio 149
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x08-0x0f */
/spatio 150
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x10-0x17 */
/spatio 151
/a>        0x00, 0xf9, 0xfb, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x18-0x1f */
/spatio 152
/a>};" 153
/a>" 154
/a>static const unsigned char 
a href="+code=page25" class="sref">page25
/a>[256] = {" 155
/a>        0xc4, 0x00, 0xb3, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x00-0x07 */
/spatio 156
/a>        0x00, 0x00, 0x00, 0x00, 0xda, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x08-0x0f */
/spatio 157
/a>        0xbf, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x10-0x17 */
/spatio 158
/a>        0xd9, 0x00, 0x00, 0x00, 0xc3, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x18-0x1f */
/spatio 159
/a>        0x00, 0x00, 0x00, 0x00, 0xb4, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x20-0x27 */
/spatio 160
/a>        0x00, 0x00, 0x00, 0x00, 0xc2, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x28-0x2f */
/spatio 161
/a>        0x00, 0x00, 0x00, 0x00, 0xc1, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x30-0x37 */
/spatio 162
/a>        0x00, 0x00, 0x00, 0x00, 0xc5, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x38-0x3f */
/spatio 163
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x40-0x47 */
/spatio 164
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x48-0x4f */
/spatio 165
/a>        0xcd, 0xba, 0xd5, 0xd6, 0xc9, 0xb8, 0xb7, 0xbb, 
spat class="comment">/* 0x50-0x57 */
/spatio 166
/a>        0xd4, 0xd3, 0xc8, 0xbe, 0xbd, 0xbc, 0xc6, 0xc7, 
spat class="comment">/* 0x58-0x5f */
/spatio 167
/a>        0xcc, 0xb5, 0xb6, 0xb9, 0xd1, 0xd2, 0xcb, 0xcf, 
spat class="comment">/* 0x60-0x67 */
/spatio 168
/a>        0xd0, 0xca, 0xd8, 0xd7, 0xce, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x68-0x6f */
/spatio 169
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x70-0x77 */
/spatio 170
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x78-0x7f */
/spatio 171
/a>o 172
/a>        0xdf, 0x00, 0x00, 0x00, 0xdc, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x80-0x87 */
/spatio 173
/a>        0xdb, 0x00, 0x00, 0x00, 0xdd, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x88-0x8f */
/spatio 174
/a>        0xde, 0xb0, 0xb1, 0xb2, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x90-0x97 */
/spatio 175
/a>        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0x98-0x9f */
/spatio 176
/a>        0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
spat class="comment">/* 0xa0-0xa7 */
/spatio 177
/a>};" 178
/a>" 179
/a>static const unsigned char *const 
a href="+code=page_uni2charset" class="sref">page_uni2charset
/a>[256] = {" 180
/a>        
a href="+code=page00" class="sref">page00
/a>, 
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=page04" class="sref">page04
/a>, 
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   " 181
/a>        
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   " 182
/a>        
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   " 183
/a>        
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   " 184
/a>        
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=page21" class="sref">page21
/a>, 
a href="+code=page22" class="sref">page22
/a>, 
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=page25" class="sref">page25
/a>, 
a href="+code=NULL" class="sref">NULL
/a>,   
a href="+code=NULL" class="sref">NULL
/a>,   " 185
/a>};" 186
/a>o 187
/a>static const unsigned char 
a href="+code=charset2lower" class="sref">charset2lower
/a>[256] = {" 188
/a>        0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
spat class="comment">/* 0x00-0x07 */
/spatio 189
/a>        0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 
spat class="comment">/* 0x08-0x0f */
/spatio 190
/a>        0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 
spat class="comment">/* 0x10-0x17 */
/spatio 191
/a>        0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 
spat class="comment">/* 0x18-0x1f */
/spatio 192
/a>        0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 
spat class="comment">/* 0x20-0x27 */
/spatio 193
/a>        0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 
spat class="comment">/* 0x28-0x2f */
/spatio 194
/a>        0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 
spat class="comment">/* 0x30-0x37 */
/spatio 195
/a>        0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 
spat class="comment">/* 0x38-0x3f */
/spatio 196
/a>        0x40, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 
spat class="comment">/* 0x40-0x47 */
/spatio 197
/a>        0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 
spat class="comment">/* 0x48-0x4f */
/spatio 198
/a>        0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 
spat class="comment">/* 0x50-0x57 */
/spatio 199
/a>        0x78, 0x79, 0x7a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 
spat class="comment">/* 0x58-0x5f */
/spatio 200
/a>        0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 
spat class="comment">/* 0x60-0x67 */
/spatio 201
/a>        0x68, 0x69, 0x6a, 0x6b, 0x6c, 0x6d, 0x6e, 0x6f, 
spat class="comment">/* 0x68-0x6f */
/spatio 202
/a>        0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 
spat class="comment">/* 0x70-0x77 */
/spatio 203
/a>        0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 
spat class="comment">/* 0x78-0x7f */
/spatio 204
/a>o 205
/a>        0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 
spat class="comment">/* 0x80-0x87 */
/spatio 206
/a>        0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 
spat class="comment">/* 0x88-0x8f */
/spatio 207
/a>        0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 
spat class="comment">/* 0x90-0x97 */
/spatio 208
/a>        0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 
spat class="comment">/* 0x98-0x9f */
/spatio 209
/a>        0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 
spat class="comment">/* 0xa0-0xa7 */
/spatio 210
/a>        0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 
spat class="comment">/* 0xa8-0xaf */
/spatio 211
/a>        0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 
spat class="comment">/* 0xb0-0xb7 */
/spatio 212
/a>        0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, 
spat class="comment">/* 0xb8-0xbf */
/spatio 213
/a>        0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 
spat class="comment">/* 0xc0-0xc7 */
/spatio 214
/a>        0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 
spat class="comment">/* 0xc8-0xcf */
/spatio 215
/a>        0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 
spat class="comment">/* 0xd0-0xd7 */
/spatio 216
/a>        0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 
spat class="comment">/* 0xd8-0xdf */
/spatio 217
/a>        0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 
spat class="comment">/* 0xe0-0xe7 */
/spatio 218
/a>        0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 
spat class="comment">/* 0xe8-0xef */
/spatio 219
/a>        0xf1, 0xf1, 0xf3, 0xf3, 0xf5, 0xf5, 0xf7, 0xf7, 
spat class="comment">/* 0xf0-0xf7 */
/spatio 220
/a>        0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, 
spat class="comment">/* 0xf8-0xff */
/spatio 221
/a>};" 222
/a>" 223
/a>static const unsigned char 
a href="+code=charset2upper" class="sref">charset2upper
/a>[256] = {" 224
/a>        0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 
spat class="comment">/* 0x00-0x07 */
/spatio 225
/a>        0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 
spat class="comment">/* 0x08-0x0f */
/spatio 226
/a>        0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 
spat class="comment">/* 0x10-0x17 */
/spatio 227
/a>        0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 
spat class="comment">/* 0x18-0x1f */
/spatio 228
/a>        0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 
spat class="comment">/* 0x20-0x27 */
/spatio 229
/a>        0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f, 
spat class="comment">/* 0x28-0x2f */
/spatio 230
/a>        0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 
spat class="comment">/* 0x30-0x37 */
/spatio 231
/a>        0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, 
spat class="comment">/* 0x38-0x3f */
/spatio 232
/a>        0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 
spat class="comment">/* 0x40-0x47 */
/spatio 233
/a>        0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 
spat class="comment">/* 0x48-0x4f */
/spatio 234
/a>        0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 
spat class="comment">/* 0x50-0x57 */
/spatio 235
/a>        0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 
spat class="comment">/* 0x58-0x5f */
/spatio 236
/a>        0x60, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 
spat class="comment">/* 0x60-0x67 */
/spatio 237
/a>        0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 
spat class="comment">/* 0x68-0x6f */
/spatio 238
/a>        0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 
spat class="comment">/* 0x70-0x77 */
/spatio 239
/a>        0x58, 0x59, 0x5a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, 
spat class="comment">/* 0x78-0x7f */
/spatio 240
/a>" 241
/a>        0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 
spat class="comment">/* 0x80-0x87 */
/spatio 242
/a>        0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 
spat class="comment">/* 0x88-0x8f */
/spatio 243
/a>        0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 
spat class="comment">/* 0x90-0x97 */
/spatio 244
/a>        0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, 
spat class="comment">/* 0x98-0x9f */
/spatio 245
/a>        0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 
spat class="comment">/* 0xa0-0xa7 */
/spatio 246
/a>        0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 
spat class="comment">/* 0xa8-0xaf */
/spatio 247
/a>        0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, 
spat class="comment">/* 0xb0-0xb7 */
/spatio 248
/a>        0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, 
spat class="comment">/* 0xb8-0xbf */
/spatio 249
/a>        0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 
spat class="comment">/* 0xc0-0xc7 */
/spatio 250
/a>        0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 
spat class="comment">/* 0xc8-0xcf */
/spatio 251
/a>        0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 
spat class="comment">/* 0xd0-0xd7 */
/spatio 252
/a>        0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, 
spat class="comment">/* 0xd8-0xdf */
/spatio 253
/a>        0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 
spat class="comment">/* 0xe0-0xe7 */
/spatio 254
/a>        0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, 
spat class="comment">/* 0xe8-0xef */
/spatio 255
/a>        0xf0, 0xf0, 0xf2, 0xf2, 0xf4, 0xf4, 0xf6, 0xf6, 
spat class="comment">/* 0xf0-0xf7 */
/spatio 256
/a>        0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, 
spat class="comment">/* 0xf8-0xff */
/spatio 257
/a>};" 258
/a>" 259
/a>static int 
a href="+code=uni2char" class="sref">uni2char
/a>(
a href="+code=wchar_t" class="sref">wchar_t
/a> 
a href="+code=uni" class="sref">uni
/a>, unsigned char *
a href="+code=out" class="sref">out
/a>, int 
a href="+code=boundlen" class="sref">boundlen
/a>)" 260
/a>{" 261
/a>        const unsigned char *
a href="+code=uni2charset" class="sref">uni2charset
/a>;" 262
/a>        unsigned char 
a href="+code=cl" class="sref">cl
/a> = 
a href="+code=uni" class="sref">uni
/a> & 0x00ff;" 263
/a>        unsigned char 
a href="+code=ch" class="sref">ch
/a> = (
a href="+code=uni" class="sref">uni
/a> & 0xff00) >> 8;" 264
/a>o 265
/a>        if (
a href="+code=boundlen" class="sref">boundlen
/a> <= 0)" 266
/a>                return -
a href="+code=ENAMETOOLONG" class="sref">ENAMETOOLONG
/a>;" 267
/a>" 268
/a>        
a href="+code=uni2charset" class="sref">uni2charset
/a> = 
a href="+code=page_uni2charset" class="sref">page_uni2charset
/a>[
a href="+code=ch" class="sref">ch
/a>];" 269
/a>        if (
a href="+code=uni2charset" class="sref">uni2charset
/a> && 
a href="+code=uni2charset" class="sref">uni2charset
/a>[
a href="+code=cl" class="sref">cl
/a>])" 270
/a>                
a href="+code=out" class="sref">out
/a>[0] = 
a href="+code=uni2charset" class="sref">uni2charset
/a>[
a href="+code=cl" class="sref">cl
/a>];" 271
/a>        else" 272
/a>                return -
a href="+code=EINVAL" class="sref">EINVAL
/a>;" 273
/a>        return 1;" 274
/a>}" 275
/a>" 276
/a>static int 
a href="+code=char2uni" class="sref">char2uni
/a>(const unsigned char *
a href="+code=rawstring" class="sref">rawstring
/a>, int 
a href="+code=boundlen" class="sref">boundlen
/a>, 
a href="+code=wchar_t" class="sref">wchar_t
/a> *
a href="+code=uni" class="sref">uni
/a>)" 277
/a>{" 278
/a>        *
a href="+code=uni" class="sref">uni
/a> = 
a href="+code=charset2uni" class="sref">charset2uni
/a>[*
a href="+code=rawstring" class="sref">rawstring
/a>];" 279
/a>        if (*
a href="+code=uni" class="sref">uni
/a> == 0x0000)" 280
/a>                return -
a href="+code=EINVAL" class="sref">EINVAL
/a>;" 281
/a>        return 1;" 282
/a>}" 283
/a>" 284
/a>static struct 
a href="+code=nls_table" class="sref">nls_table
/a> 
a href="+code=table" class="sref">table
/a> = {" 285
/a>        .
a href="+code=charset" class="sref">charset
/a>        = 
spat class="string">"cp866"
/spati,o 286
/a>        .
a href="+code=uni2char" class="sref">uni2char
/a>       = 
a href="+code=uni2char" class="sref">uni2char
/a>,o 287
/a>        .
a href="+code=char2uni" class="sref">char2uni
/a>       = 
a href="+code=char2uni" class="sref">char2uni
/a>,o 288
/a>        .
a href="+code=charset2lower" class="sref">charset2lower
/a>  = 
a href="+code=charset2lower" class="sref">charset2lower
/a>,o 289
/a>        .
a href="+code=charset2upper" class="sref">charset2upper
/a>  = 
a href="+code=charset2upper" class="sref">charset2upper
/a>,o 290
/a>        .
a href="+code=owner" class="sref">owner
/a>          = 
a href="+code=THIS_MODULE" class="sref">THIS_MODULE
/a>,o 291
/a>};" 292
/a>" 293
/a>static int 
a href="+code=__init" class="sref">__init
/a> 
a href="+code=init_nls_cp866" class="sref">init_nls_cp866
/a>(void)" 294
/a>{" 295
/a>        return 
a href="+code=register_nls" class="sref">register_nls
/a>(&
a href="+code=table" class="sref">table
/a>);" 296
/a>}" 297
/a>" 298
/a>static void 
a href="+code=__exit" class="sref">__exit
/a> 
a href="+code=exit_nls_cp866" class="sref">exit_nls_cp866
/a>(void)" 299
/a>{" 300
/a>        
a href="+code=unregister_nls" class="sref">unregister_nls
/a>(&
a href="+code=table" class="sref">table
/a>);" 301
/a>}" 302
/a>" 303
/a>
a href="+code=module_init" class="sref">module_init
/a>(
a href="+code=init_nls_cp866" class="sref">init_nls_cp866
/a>)" 304
/a>
a href="+code=module_exit" class="sref">module_exit
/a>(
a href="+code=exit_nls_cp866" class="sref">exit_nls_cp866
/a>)" 305
/a>" 306
/a>
a href="+code=MODULE_LICENSE" class="sref">MODULE_LICENSE
/a>(
spat class="string">"Dual BSD/GPL"
/spati);" 307
/a>
lxr.linux.no kindly hosted by Redpill Linpro AS /a>, provider of Linux consulting and operations services since 1995.