comparison src/file-coding.c @ 4839:5f1c6ca4d05e

fix bad change to default_query_method, rewrite conditional for more correctness
author Ben Wing <ben@xemacs.org>
date Tue, 12 Jan 2010 23:16:33 -0600
parents a9833e8a32ec
children a98ca4640147
comparison
equal deleted inserted replaced
4838:d08fc2e159c9 4839:5f1c6ca4d05e
498 else 498 else
499 { 499 {
500 fail_range_start = pos; 500 fail_range_start = pos;
501 while ((pos < end) && 501 while ((pos < end) &&
502 (EQ (Qnil, get_char_table (ch, safe_chars)) 502 (EQ (Qnil, get_char_table (ch, safe_chars))
503 && (failed_reason == query_coding_unencodable)) 503 && (failed_reason = query_coding_unencodable,
504 && (previous_failed_reason == query_coding_succeeded 504 (previous_failed_reason == query_coding_succeeded
505 || previous_failed_reason == failed_reason)) 505 || previous_failed_reason == failed_reason))))
506 { 506 {
507 pos++; 507 pos++;
508 INC_BYTEBPOS (buf, pos_byte); 508 INC_BYTEBPOS (buf, pos_byte);
509 ch = BYTE_BUF_FETCH_CHAR (buf, pos_byte); 509 ch = BYTE_BUF_FETCH_CHAR (buf, pos_byte);
510 previous_failed_reason = failed_reason; 510 previous_failed_reason = failed_reason;