From: handa Date: Wed, 4 Feb 2009 11:31:30 +0000 (+0000) Subject: (mcoding__init): Add "Shift_JIS" as an alias of "sjis". X-Git-Tag: REL-1-5-4~8 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=bd26096324aa4867f3932c8ee484e3e4f9484dd2;p=m17n%2Fm17n-lib.git (mcoding__init): Add "Shift_JIS" as an alias of "sjis". --- diff --git a/src/coding.c b/src/coding.c index 10e0725..c29dcd9 100644 --- a/src/coding.c +++ b/src/coding.c @@ -2976,6 +2976,9 @@ mcoding__init (void) NULL, NULL, NULL, NULL); mplist_put (param, Mtype, Mnil); + pl = mplist (); + mplist_add (pl, Msymbol, msymbol ("Shift_JIS")); + mplist_put (param, Maliases, pl); mplist_set (charsets, Msymbol, Mcharset_ascii); Mcoding_sjis = mconv_define_coding ("sjis", param, reset_coding_sjis, @@ -2984,6 +2987,7 @@ mcoding__init (void) M17N_OBJECT_UNREF (charsets); M17N_OBJECT_UNREF (param); + M17N_OBJECT_UNREF (pl); return 0; }