From 7623ef0f4c2008dc44b94ae249a8a62942dad23c Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 2 Dec 2005 04:43:40 +0000 Subject: [PATCH] (mlang__init): Handle extra chars. --- src/language.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/language.c b/src/language.c index 546f995..0646a61 100644 --- a/src/language.c +++ b/src/language.c @@ -62,7 +62,7 @@ mlang__init () { MPlist *p; MSymbol code3, code2, lang; - MText *native; + MText *native, *extra; if (! MPLIST_PLIST_P (pl)) continue; @@ -82,7 +82,13 @@ mlang__init () p = MPLIST_NEXT (p); native = MPLIST_MTEXT_P (p) ? MPLIST_MTEXT (p) : NULL; if (native) - msymbol_put (code3, Mtext, native); + { + msymbol_put (code3, Mtext, native); + p = MPLIST_NEXT (p); + extra = MPLIST_MTEXT_P (p) ? MPLIST_MTEXT (p) : NULL; + if (extra) + mtext_put_prop (native, 0, mtext_nchars (native), Mtext, extra); + } if (code2 != Mnil) { msymbol_put (code3, Miso639_1, code2); -- 1.7.10.4