diff options
| author | Kenichi Handa | 2012-10-13 21:58:52 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-10-13 21:58:52 +0900 |
| commit | 0ba06a77fd4ccf92f1106b8ab7d8d64d6d812a1d (patch) | |
| tree | 182e4f1a5eaddbbc5ed921fc4feda85a07e88151 /src/coding.c | |
| parent | 06485aa8215af39f9f5f999933aa39d349a2bdf9 (diff) | |
| download | emacs-0ba06a77fd4ccf92f1106b8ab7d8d64d6d812a1d.tar.gz emacs-0ba06a77fd4ccf92f1106b8ab7d8d64d6d812a1d.zip | |
coding.c (detect_coding): Set coding->id before calling this->detector.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index d9606cf5710..412d7245223 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -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. */ |