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
f024b6aa
Commit
f024b6aa
authored
Aug 09, 1998
by
Richard M. Stallman
Browse files
(CHARSET_OK): Check that coding_system_table[IDX] != 0.
parent
3527740c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
src/coding.c
src/coding.c
+6
-5
No files found.
src/coding.c
View file @
f024b6aa
...
@@ -652,11 +652,12 @@ detect_coding_emacs_mule (src, src_end)
...
@@ -652,11 +652,12 @@ detect_coding_emacs_mule (src, src_end)
enum iso_code_class_type iso_code_class[256];
enum iso_code_class_type iso_code_class[256];
#define CHARSET_OK(idx, charset) \
#define CHARSET_OK(idx, charset) \
(coding_system_table[idx]->safe_charsets[charset] \
(coding_system_table[idx] \
|| (CODING_SPEC_ISO_REQUESTED_DESIGNATION \
&& (coding_system_table[idx]->safe_charsets[charset] \
(coding_system_table[idx], charset) \
|| (CODING_SPEC_ISO_REQUESTED_DESIGNATION \
!= CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION))
(coding_system_table[idx], charset) \
!= CODING_SPEC_ISO_NO_REQUESTED_DESIGNATION)))
#define SHIFT_OUT_OK(idx) \
#define SHIFT_OUT_OK(idx) \
(CODING_SPEC_ISO_INITIAL_DESIGNATION (coding_system_table[idx], 1) >= 0)
(CODING_SPEC_ISO_INITIAL_DESIGNATION (coding_system_table[idx], 1) >= 0)
...
...
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