#ifndef _ENC_H_
#  define _CHINPUT_ENC_HEADER_
#  include "all.h"

#  define		HZSERVER_DEFAULT_LOCALE			"zh_TW.Big5"

#  define		HZSERVER_DEFAULT_BIG5_IME		"CangJie"
#  define		HZSERVER_DEFAULT_BIG5HKSCS_IME	"CangJie"
#  define		HZSERVER_DEFAULT_GB2312_IME		"ZNPY"
#  define		HZSERVER_DEFAULT_GB18030_IME	"ZNPY"

#  define		HZSERVER_BIG5_LOCALE			"zh_TW.Big5"
#  define		HZSERVER_GB2312_LOCALE			"zh_CN.GB2312"
#  define		HZSERVER_GB18030_LOCALE			"zh_CN.GB18030"
#  define		HZSERVER_BIG5HKSCS_LOCALE		"zh_HK.big5hkscs"

#  define		HZSERVER_ENCODING_DEFAULT		1
#  define		HZSERVER_ENCODING_BIG5			1
#  define		HZSERVER_ENCODING_BIG5HKSCS		2
#  define		HZSERVER_ENCODING_GB2312		3
#  define		HZSERVER_ENCODING_GB18030		4

extern int
chinput_enc_get_encoding (const char *in_locale);

extern int
chinput_enc_get_locale (char *out_locale, int enc);

extern int
chinput_enc_set_locale (char *orig_locale, int enc);

extern int
chinput_enc_get_def_im (char *out_imname, int enc);

extern int
chinput_enc_get_status_str (char *out_status, int flag_2byte,
		int flag_punct, int enc);

#endif
