static int __init init_nls_utf8(void) { int i; for (i=0; i<256; i++) identity[i] = i; return register_nls(&table); }
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; }
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; }
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; }
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; }
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); }
int init_nls_cp855(void) { return register_nls(&table); }
static int __init init_nls_ascii(void) { return register_nls(&table); }
static int __init init_nls_maccenteuro(void) { return register_nls(&table); }
static int __init init_nls_iso8859_7(void) { return register_nls(&table); }
static int __init init_nls_macinuit(void) { return register_nls(&table); }
int init_nls_cp437() { return register_nls(&table); }
static int __init init_nls_maccyrillic(void) { return register_nls(&table); }
static int __init init_nls_koi8_u(void) { return register_nls(&table); }
int init_nls_cp850() { return register_nls(&table); }
int init_nls_cp1250(void) { return register_nls(&table); }
int init_nls_iso8859_1() { return register_nls(&table); }
int __init init_nls_cp852(void) { return register_nls(&table); }
static int __init init_nls_cp861(void) { return register_nls(&table); }
int init_nls_iso8859_9(void) { return register_nls(&table); }