(detect_coding): Preserve coding->mode.
This commit is contained in:
parent
1e3d938686
commit
73cce38dbc
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue