View | Details | Raw Unified | Return to bug 65371
Collapse All | Expand All

(-)a/fs/nls/nls_ascii.c (-6 / +6 lines)
Lines 13-19 Link Here
13
#include <linux/nls.h>
13
#include <linux/nls.h>
14
#include <linux/errno.h>
14
#include <linux/errno.h>
15
15
16
static wchar_t charset2uni[128] = {
16
static wchar_t charset2uni[256] = {
17
	/* 0x00*/
17
	/* 0x00*/
18
	0x0000, 0x0001, 0x0002, 0x0003,
18
	0x0000, 0x0001, 0x0002, 0x0003,
19
	0x0004, 0x0005, 0x0006, 0x0007,
19
	0x0004, 0x0005, 0x0006, 0x0007,
Lines 56-62 Link Here
56
	0x007c, 0x007d, 0x007e, 0x007f,
56
	0x007c, 0x007d, 0x007e, 0x007f,
57
};
57
};
58
58
59
static unsigned char page00[128] = {
59
static unsigned char page00[256] = {
60
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */
60
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */
61
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */
61
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */
62
	0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */
62
	0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */
Lines 75-85 Link Here
75
	0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, /* 0x78-0x7f */
75
	0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, /* 0x78-0x7f */
76
};
76
};
77
77
78
static unsigned char *page_uni2charset[128] = {
78
static unsigned char *page_uni2charset[256] = {
79
	page00, NULL,   NULL,   NULL,   NULL,   NULL,   NULL,   NULL,
79
	page00,
80
};
80
};
81
81
82
static unsigned char charset2lower[128] = {
82
static unsigned char charset2lower[256] = {
83
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */
83
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */
84
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */
84
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */
85
	0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */
85
	0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */
Lines 98-104 Link Here
98
	0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, /* 0x78-0x7f */
98
	0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f, /* 0x78-0x7f */
99
};
99
};
100
100
101
static unsigned char charset2upper[128] = {
101
static unsigned char charset2upper[256] = {
102
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */
102
	0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */
103
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */
103
	0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */
104
	0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */
104
	0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */

Return to bug 65371