Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
74b01b80
Commit
74b01b80
authored
Jun 23, 2000
by
Eli Zaretskii
Browse files
(decode_eol_post_ccl): Special handling for undecided
and inconsistent EOL types.
parent
affbf647
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
src/ChangeLog
src/ChangeLog
+5
-0
src/coding.c
src/coding.c
+10
-4
No files found.
src/ChangeLog
View file @
74b01b80
No preview for this file type
src/coding.c
View file @
74b01b80
...
...
@@ -3944,13 +3944,19 @@ decode_eol_post_ccl (coding, ptr, bytes)
/* Here, to avoid the call of setup_coding_system, we directly
call detect_eol_type. */
coding
->
eol_type
=
detect_eol_type
(
ptr
,
bytes
,
&
dummy
);
val
=
Fget
(
coding
->
symbol
,
Qeol_type
);
if
(
VECTORP
(
val
)
&&
XVECTOR
(
val
)
->
size
==
3
)
coding
->
symbol
=
XVECTOR
(
val
)
->
contents
[
coding
->
eol_type
];
if
(
coding
->
eol_type
==
CODING_EOL_INCONSISTENT
)
coding
->
eol_type
=
CODING_EOL_LF
;
if
(
coding
->
eol_type
!=
CODING_EOL_UNDECIDED
)
{
val
=
Fget
(
coding
->
symbol
,
Qeol_type
);
if
(
VECTORP
(
val
)
&&
XVECTOR
(
val
)
->
size
==
3
)
coding
->
symbol
=
XVECTOR
(
val
)
->
contents
[
coding
->
eol_type
];
}
coding
->
mode
|=
CODING_MODE_INHIBIT_INCONSISTENT_EOL
;
}
if
(
coding
->
eol_type
==
CODING_EOL_LF
)
if
(
coding
->
eol_type
==
CODING_EOL_LF
||
coding
->
eol_type
==
CODING_EOL_UNDECIDED
)
{
/* We have nothing to do. */
ptr
=
pend
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment