Improve the encoding by compound-text-with-extensions.

This commit is contained in:
Kenichi Handa 2010-08-06 17:11:19 +09:00
parent faa28da9b7
commit 7a84eee5b7
5 changed files with 147 additions and 76 deletions

View file

@ -3935,7 +3935,7 @@ decode_coding_iso_2022 (coding)
int size;
ONE_MORE_BYTE (dim);
if (dim < 0 || dim > 4)
if (dim < '0' || dim > '4')
goto invalid_code;
ONE_MORE_BYTE (M);
if (M < 128)