aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/coding.c14
2 files changed, 15 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f7ecf019999..4ccc973f0d3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * coding.c (decode_eol_post_ccl): Special handling for undecided
4 and inconsistent EOL types.
5
12000-06-22 Gerd Moellmann <gerd@gnu.org> 62000-06-22 Gerd Moellmann <gerd@gnu.org>
2 7
3 * xrdb.c (x_load_resources): Add default resource for scroll bar's 8 * xrdb.c (x_load_resources): Add default resource for scroll bar's
diff --git a/src/coding.c b/src/coding.c
index d02c27dc478..a90795d781b 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -3944,13 +3944,19 @@ decode_eol_post_ccl (coding, ptr, bytes)
3944 /* Here, to avoid the call of setup_coding_system, we directly 3944 /* Here, to avoid the call of setup_coding_system, we directly
3945 call detect_eol_type. */ 3945 call detect_eol_type. */
3946 coding->eol_type = detect_eol_type (ptr, bytes, &dummy); 3946 coding->eol_type = detect_eol_type (ptr, bytes, &dummy);
3947 val = Fget (coding->symbol, Qeol_type); 3947 if (coding->eol_type == CODING_EOL_INCONSISTENT)
3948 if (VECTORP (val) && XVECTOR (val)->size == 3) 3948 coding->eol_type = CODING_EOL_LF;
3949 coding->symbol = XVECTOR (val)->contents[coding->eol_type]; 3949 if (coding->eol_type != CODING_EOL_UNDECIDED)
3950 {
3951 val = Fget (coding->symbol, Qeol_type);
3952 if (VECTORP (val) && XVECTOR (val)->size == 3)
3953 coding->symbol = XVECTOR (val)->contents[coding->eol_type];
3954 }
3950 coding->mode |= CODING_MODE_INHIBIT_INCONSISTENT_EOL; 3955 coding->mode |= CODING_MODE_INHIBIT_INCONSISTENT_EOL;
3951 } 3956 }
3952 3957
3953 if (coding->eol_type == CODING_EOL_LF) 3958 if (coding->eol_type == CODING_EOL_LF
3959 || coding->eol_type == CODING_EOL_UNDECIDED)
3954 { 3960 {
3955 /* We have nothing to do. */ 3961 /* We have nothing to do. */
3956 ptr = pend; 3962 ptr = pend;