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:
parent
06485aa821
commit
0ba06a77fd
2 changed files with 8 additions and 0 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue