Commit 73cce38d authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(detect_coding): Preserve coding->mode.

parent 1e3d9386
2009-02-19 Kenichi Handa <handa@m17n.org>
* coding.c (detect_coding): Preserve coding->mode.
2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
* m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
......
......@@ -5955,6 +5955,7 @@ detect_coding (coding)
struct coding_system *coding;
{
const unsigned char *src, *src_end;
int saved_mode = coding->mode;
coding->consumed = coding->consumed_char = 0;
coding->produced = coding->produced_char = 0;
......@@ -6125,6 +6126,7 @@ detect_coding (coding)
setup_coding_system (XCDR (coding_systems), coding);
}
}
coding->mode = saved_mode;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment