17 unsigned char *
out,
int boundlen)
22 if ((uni & 0xffaf) == 0x040e || (uni & 0xffce) == 0x254c) {
26 else if (uni == 0x045e)
28 else if (uni == 0x255d || uni == 0x256c)
31 return p_nls->uni2char(uni,
out, boundlen);
36 return p_nls->uni2char(uni,
out, boundlen);
39static int char2uni(
const unsigned char *rawstring,
int boundlen,
44 if ((*rawstring & 0xef) != 0xae) {
46 *uni = (*rawstring & 0x10) ? 0x040e : 0x045e;
50 n =
p_nls->char2uni(rawstring, boundlen, uni);
int register_nls(struct nls_table *)
void unload_nls(struct nls_table *)
int unregister_nls(struct nls_table *)
#define MODULE_LICENSE(x)
struct nls_table * load_nls(char *)
static struct nls_table * p_nls
static void __exit exit_nls_koi8_ru(void)
static int char2uni(const unsigned char *rawstring, int boundlen, wchar_t *uni)
static int __init init_nls_koi8_ru(void)
static int uni2char(const wchar_t uni, unsigned char *out, int boundlen)