Mercurial > emacs
comparison src/coding.c @ 95585:862c7386145c
(detect_coding): Fix previous change.
(detect_coding_system): Likewise.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Thu, 05 Jun 2008 11:35:10 +0000 |
| parents | 831c8ee4d884 |
| children | a3f2a5a4b492 |
comparison
equal
deleted
inserted
replaced
| 95584:56063bdf17fc | 95585:862c7386145c |
|---|---|
| 5828 { | 5828 { |
| 5829 null_byte_found = 1; | 5829 null_byte_found = 1; |
| 5830 if (eight_bit_found) | 5830 if (eight_bit_found) |
| 5831 break; | 5831 break; |
| 5832 } | 5832 } |
| 5833 coding->head_ascii++; | 5833 if (! eight_bit_found) |
| 5834 coding->head_ascii++; | |
| 5834 } | 5835 } |
| 5835 else | 5836 else if (! eight_bit_found) |
| 5836 coding->head_ascii++; | 5837 coding->head_ascii++; |
| 5837 } | 5838 } |
| 5838 | 5839 |
| 5839 if (null_byte_found || eight_bit_found | 5840 if (null_byte_found || eight_bit_found |
| 5840 || coding->head_ascii < coding->src_bytes | 5841 || coding->head_ascii < coding->src_bytes |
| 7705 { | 7706 { |
| 7706 null_byte_found = 1; | 7707 null_byte_found = 1; |
| 7707 if (eight_bit_found) | 7708 if (eight_bit_found) |
| 7708 break; | 7709 break; |
| 7709 } | 7710 } |
| 7710 coding.head_ascii++; | 7711 if (! eight_bit_found) |
| 7712 coding.head_ascii++; | |
| 7711 } | 7713 } |
| 7712 else | 7714 else if (! eight_bit_found) |
| 7713 coding.head_ascii++; | 7715 coding.head_ascii++; |
| 7714 } | 7716 } |
| 7715 | 7717 |
| 7716 if (null_byte_found || eight_bit_found | 7718 if (null_byte_found || eight_bit_found |
| 7717 || coding.head_ascii < coding.src_bytes | 7719 || coding.head_ascii < coding.src_bytes |
