Commit 0ba06a77 authored by Kenichi Handa's avatar Kenichi Handa

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

parent 06485aa8
2012-10-13 HANATAKA, Shinya <bogytech@gmail.com> (tiny change)
* coding.c (detect_coding): Set coding->id before calling
this->detector.
2012-10-12 Stefan Monnier <monnier@iro.umontreal.ca>
* doc.c (get_doc_string): Don't signal an error if the file is missing.
......
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment