From: handa Date: Mon, 5 Sep 2005 05:09:00 +0000 (+0000) Subject: (read_mtext_element): Fix previous change. X-Git-Tag: REL-1-3-0~187 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d87134f3402670a7d95a7a837d4dc7c97fa01cf8;p=m17n%2Fm17n-lib.git (read_mtext_element): Fix previous change. --- diff --git a/src/plist.c b/src/plist.c index 3947726..df04d1e 100644 --- a/src/plist.c +++ b/src/plist.c @@ -224,6 +224,8 @@ read_mtext_element (MPlist *plist, MStream *st, int skip) i = 0; while ((c = GETC (st)) != EOF && c != '"') { + int is_char = 0; + if (c == '\\') { c = GETC (st); @@ -237,6 +239,8 @@ read_mtext_element (MPlist *plist, MStream *st, int skip) next_c = GETC (st); if (next_c != ' ') UNGETC (next_c, st); + if (c >= 0x80) + is_char = 1; } else c = escape_mnemonic[c]; @@ -244,7 +248,7 @@ read_mtext_element (MPlist *plist, MStream *st, int skip) if (! skip) { - if (c >= 0x80 && ! chars) + if (is_char && ! chars) { chars = buffer.chars; for (j = i - 1; j >= 0; j--)