1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-19 12:20:17 -08:00

coding.c (detect_coding): Set coding->id before calling this->detector.

This commit is contained in:
Kenichi Handa 2012-10-13 21:58:52 +09:00
parent 06485aa821
commit 0ba06a77fd
2 changed files with 8 additions and 0 deletions

View file

@ -6301,6 +6301,9 @@ detect_coding (struct coding_system *coding)
{
category = coding_priorities[i];
this = coding_categories + category;
/* Some of this->detector (e.g. detect_coding_sjis)
require this information. */
coding->id = this->id;
if (this->id < 0)
{
/* No coding system of this category is defined. */