/*
 * linux/fs/nls_big5.c
 */

#include "nls.h"

static struct nls_table *p_nls;

static struct nls_table table = {
	"big5",
	NULL,
	NULL,
	NULL,
	NULL,
	THIS_MODULE,
};

int init_nls_big5(void)
{
	p_nls = load_nls("cp950");

	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;
}

void exit_nls_big5(void)
{
	unregister_nls(&table);
	unload_nls(p_nls);
}


/*
 * Overrides for Emacs so that we follow Linus's tabbing style.
 * Emacs will notice this stuff at the end of the file and automatically
 * adjust the settings for this buffer only.  This must remain at the end
 * of the file.
 *
---------------------------------------------------------------------------
 * Local variables:
 * c-indent-level: 8
 * c-brace-imaginary-offset: 0
 * c-brace-offset: -8
 * c-argdecl-indent: 8
 * c-label-offset: -8
 * c-continued-statement-offset: 8
 * c-continued-brace-offset: 0
 * End:
 */


syntax highlighted by Code2HTML, v. 0.9.1