Mercurial > hg > xemacs-beta
diff src/file-coding.c @ 361:7347b34c275b r21-1-10
Import from CVS: tag r21-1-10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:58:40 +0200 |
parents | 7c94d56991e1 |
children | 30d2cfa1092a |
line wrap: on
line diff
--- a/src/file-coding.c Mon Aug 13 10:57:57 2007 +0200 +++ b/src/file-coding.c Mon Aug 13 10:58:40 2007 +0200 @@ -1855,6 +1855,13 @@ setup_ccl_program (&str->ccl, CODING_SYSTEM_CCL_DECODE (str->codesys)); } #endif /* MULE */ + if (CODING_SYSTEM_TYPE (str->codesys) == CODESYS_AUTODETECT + || CODING_SYSTEM_EOL_TYPE (str->codesys) == EOL_AUTODETECT) + { + xzero (str->decst); + str->decst.eol_type = EOL_AUTODETECT; + str->decst.mask = ~0; + } str->flags = str->ch = 0; }