From d87134f3402670a7d95a7a837d4dc7c97fa01cf8 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 5 Sep 2005 05:09:00 +0000 Subject: [PATCH] (read_mtext_element): Fix previous change. --- src/plist.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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--) -- 1.7.10.4