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
73cce38d
Commit
73cce38d
authored
Feb 19, 2009
by
Kenichi Handa
Browse files
(detect_coding): Preserve coding->mode.
parent
1e3d9386
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/ChangeLog
src/ChangeLog
+4
-0
src/coding.c
src/coding.c
+2
-0
No files found.
src/ChangeLog
View file @
73cce38d
2009-02-19 Kenichi Handa <handa@m17n.org>
* coding.c (detect_coding): Preserve coding->mode.
2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
* m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
* m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
...
...
src/coding.c
View file @
73cce38d
...
@@ -5955,6 +5955,7 @@ detect_coding (coding)
...
@@ -5955,6 +5955,7 @@ detect_coding (coding)
struct coding_system *coding;
struct coding_system *coding;
{
{
const unsigned char *src, *src_end;
const unsigned char *src, *src_end;
int saved_mode = coding->mode;
coding->consumed = coding->consumed_char = 0;
coding->consumed = coding->consumed_char = 0;
coding->produced = coding->produced_char = 0;
coding->produced = coding->produced_char = 0;
...
@@ -6125,6 +6126,7 @@ detect_coding (coding)
...
@@ -6125,6 +6126,7 @@ detect_coding (coding)
setup_coding_system (XCDR (coding_systems), coding);
setup_coding_system (XCDR (coding_systems), coding);
}
}
}
}
coding->mode = saved_mode;
}
}
...
...
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