From 6c37741e630f12df5c64c120cc481f9a024518eb Mon Sep 17 00:00:00 2001 From: HIRANO Takahito Date: Sat, 19 Mar 2011 18:05:07 +0900 Subject: [PATCH] Could not handle iso-2022-jp streams which contain continuous escape sequences. Signed-off-by: HIRANO Takahito --- .../fsck/k9/mail/internet/Iso2022JpToShiftJisInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/internet/Iso2022JpToShiftJisInputStream.java b/src/com/fsck/k9/mail/internet/Iso2022JpToShiftJisInputStream.java index 804a9434b..0b754a40f 100644 --- a/src/com/fsck/k9/mail/internet/Iso2022JpToShiftJisInputStream.java +++ b/src/com/fsck/k9/mail/internet/Iso2022JpToShiftJisInputStream.java @@ -26,7 +26,7 @@ class Iso2022JpToShiftJisInputStream extends InputStream { } int in1 = mIn.read(); - if (in1 == 0x1b) { + while (in1 == 0x1b) { in1 = mIn.read(); if (in1 == '(') { in1 = mIn.read();