Mercurial > emacs
comparison src/coding.c @ 102325:2c693a021d83
(detect_coding_charset): If not checking latin extra,
fail on characters between 0x80 and 0xA0. (Bug#2354)
| author | Jason Rumney <jasonr@gnu.org> |
|---|---|
| date | Sat, 28 Feb 2009 13:37:33 +0000 |
| parents | d8f068bac680 |
| children | a1f0d8fadbb1 |
comparison
equal
deleted
inserted
replaced
| 102324:dd6863f22f2a | 102325:2c693a021d83 |
|---|---|
| 5126 if (NILP (val)) | 5126 if (NILP (val)) |
| 5127 break; | 5127 break; |
| 5128 if (c >= 0x80) | 5128 if (c >= 0x80) |
| 5129 { | 5129 { |
| 5130 if (c < 0xA0 | 5130 if (c < 0xA0 |
| 5131 && check_latin_extra | 5131 && (!check_latin_extra |
| 5132 && NILP (XVECTOR (Vlatin_extra_code_table)->contents[c])) | 5132 || NILP (XVECTOR (Vlatin_extra_code_table)->contents[c]))) |
| 5133 break; | 5133 break; |
| 5134 found = CATEGORY_MASK_CHARSET; | 5134 found = CATEGORY_MASK_CHARSET; |
| 5135 } | 5135 } |
| 5136 if (INTEGERP (val)) | 5136 if (INTEGERP (val)) |
| 5137 { | 5137 { |
