[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coding tags and utf-16

From: Stefan Monnier
Subject: Re: coding tags and utf-16
Date: Thu, 05 Jan 2006 10:56:52 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

> So, in any cases, a tag value itself is useless.  Then how
> to detect utf-16 more reliably?  In the current Emacs
> (i.e. Ver.22), I think we can use auto-coding-regexp-alist
> or auto-coding-alist.  In the former case, we can register
> BOM patterns and also something like "\\`\\(\0[\0-\177]\\)+"
> for utf-16be.  In the latter case, you can use more
> complicated heuristics in a registered function.

Can't it be somehow added to detect_coding_utf_16?

> But, those are anyway just heuristics; not 100% reliable.
> So I think we need a user option to turn it on and off, or
> perhaps a user option to select which kind of heuristics.

Shouldn't this be done via the coding-system-priority?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]