From: handa Date: Thu, 18 Mar 2004 23:08:24 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL-1-0-1~8 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=afa7b8f1c51b662828c85df6c24359a3ea8ac738;p=m17n%2Fm17n-lib.git *** empty log message *** --- diff --git a/src/charset.c b/src/charset.c index a2d5755..33d3d5f 100644 --- a/src/charset.c +++ b/src/charset.c @@ -685,6 +685,7 @@ mcharset__load_from_database () pl = MPLIST_NEXT (pl); definitions = mplist_add (definitions, name, pl); M17N_OBJECT_REF (pl); + mchar_define_charset (MSYMBOL_NAME (name), mplist__from_plist (pl)); if ((pl = mplist_find_by_value (pl, Mdefine_coding)) && (MSymbol) MPLIST_VAL (MPLIST_NEXT (pl)) == Mt) mconv__register_charset_coding (name); diff --git a/src/coding.c b/src/coding.c index 3828d2c..c7386cc 100644 --- a/src/coding.c +++ b/src/coding.c @@ -372,6 +372,7 @@ encode_unsupporeted_char (int c, unsigned char *dst, unsigned char *dst_end, if (dst + len > dst_end) return 0; + mtext_put_prop (mt, pos, pos + 1, Mcoding, Mnil); format = (c < 0xD800 ? "" : c < 0xE000 ? "" : c < 0x10000 ? "" @@ -4495,6 +4496,7 @@ mconv_encode_range (MConverter *converter, MText *mt, int from, int to) converter->nchars = converter->nbytes = 0; converter->result = MCONVERSION_RESULT_SUCCESS; + mtext_put_prop (mt, from, to, Mcoding, internal->coding->name); if (internal->binding == BINDING_BUFFER) { (*internal->coding->encoder) (mt, from, to,