Пример #1
0
static int __init init_nls_utf8(void)
{
	int i;
	for (i=0; i<256; i++)
		identity[i] = i;

        return register_nls(&table);
}
Пример #2
0
static int __init init_nls_koi8_ru(void)
{
	p_nls = load_nls("koi8-u");

	if (p_nls) {
		table.charset2upper = p_nls->charset2upper;
		table.charset2lower = p_nls->charset2lower;
		return register_nls(&table);
	}

	return -EINVAL;
}
Пример #3
0
static int __init init_nls_euc_jp(void)
{
	p_nls = load_nls("cp932");

	if (p_nls) {
		table.charset2upper = p_nls->charset2upper;
		table.charset2lower = p_nls->charset2lower;
		return register_nls(&table);
	}

	return -EINVAL;
}
Пример #4
0
static int __init init_nls_euc_jp(void)
{
	p_nls = load_nls("cp932");

	if (p_nls) {
		pax_open_kernel();
		*(const unsigned char **)&table.charset2upper = p_nls->charset2upper;
		*(const unsigned char **)&table.charset2lower = p_nls->charset2lower;
		pax_close_kernel();
		return register_nls(&table);
	}

	return -EINVAL;
}
Пример #5
0
static int __init init_nls_gb2312(void)
{
	p_nls = load_nls("cp936");

	if (p_nls) {
		table.uni2char = p_nls->uni2char;
		table.char2uni = p_nls->char2uni;
		table.charset2upper = p_nls->charset2upper;
		table.charset2lower = p_nls->charset2lower;
		return register_nls(&table);
	}

	return -EINVAL;
}
Пример #6
0
static void test_nls_base(void) {

	wchar_t p=0x20;
	__u8 s=0x01;
	int n=2;
	struct nls_table nls;
	char charset[20]="David";
	
	load_nls_default();
	register_nls(&nls);
	unload_nls(&nls);
	load_nls(charset);
	unregister_nls(&nls);
	utf8_mbtowc(&p, &s, n);
	utf8_mbstowcs(&p, &s, n);
	n=20;
	utf8_wctomb(&s, p, n);
	utf8_wcstombs(&s, &p, n);
}
Пример #7
0
int init_nls_cp855(void)
{
	return register_nls(&table);
}
static int __init init_nls_ascii(void)
{
	return register_nls(&table);
}
Пример #9
0
static int __init init_nls_maccenteuro(void)
{
	return register_nls(&table);
}
Пример #10
0
static int __init init_nls_iso8859_7(void)
{
	return register_nls(&table);
}
Пример #11
0
static int __init init_nls_macinuit(void)
{
	return register_nls(&table);
}
Пример #12
0
int
init_nls_cp437()
{
	return register_nls(&table);
}
Пример #13
0
static int __init init_nls_maccyrillic(void)
{
	return register_nls(&table);
}
Пример #14
0
static int __init init_nls_koi8_u(void)
{
	return register_nls(&table);
}
Пример #15
0
int
init_nls_cp850()
{
	return register_nls(&table);
}
int  init_nls_cp1250(void)
{
    return register_nls(&table);
}
Пример #17
0
int
init_nls_iso8859_1()
{
	return register_nls(&table);
}
Пример #18
0
int __init init_nls_cp852(void)
{
	return register_nls(&table);
}
Пример #19
0
static int __init init_nls_cp861(void)
{
	return register_nls(&table);
}
int  init_nls_iso8859_9(void)
{
	return register_nls(&table);
}