diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index d9606cf5710..7628a9fbf2e 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -415,7 +415,7 @@ enum iso_code_class_type | |||
| 415 | ISO_shift_out, /* ISO_CODE_SO (0x0E) */ | 415 | ISO_shift_out, /* ISO_CODE_SO (0x0E) */ |
| 416 | ISO_shift_in, /* ISO_CODE_SI (0x0F) */ | 416 | ISO_shift_in, /* ISO_CODE_SI (0x0F) */ |
| 417 | ISO_single_shift_2_7, /* ISO_CODE_SS2_7 (0x19) */ | 417 | ISO_single_shift_2_7, /* ISO_CODE_SS2_7 (0x19) */ |
| 418 | ISO_escape, /* ISO_CODE_SO (0x1B) */ | 418 | ISO_escape, /* ISO_CODE_ESC (0x1B) */ |
| 419 | ISO_control_1, /* Control codes in the range | 419 | ISO_control_1, /* Control codes in the range |
| 420 | 0x80..0x9F, except for the | 420 | 0x80..0x9F, except for the |
| 421 | following 3 codes. */ | 421 | following 3 codes. */ |
| @@ -6301,6 +6301,9 @@ detect_coding (struct coding_system *coding) | |||
| 6301 | { | 6301 | { |
| 6302 | category = coding_priorities[i]; | 6302 | category = coding_priorities[i]; |
| 6303 | this = coding_categories + category; | 6303 | this = coding_categories + category; |
| 6304 | /* Some of this->detector (e.g. detect_coding_sjis) | ||
| 6305 | require this information. */ | ||
| 6306 | coding->id = this->id; | ||
| 6304 | if (this->id < 0) | 6307 | if (this->id < 0) |
| 6305 | { | 6308 | { |
| 6306 | /* No coding system of this category is defined. */ | 6309 | /* No coding system of this category is defined. */ |