Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2007-01-05 Thread Romain Francoise
tags 404236 pending quit I fixed this upstream by making the HTML auto-detection function ensure that it's really working in a HTML document. The next snapshot will have the fix. Thanks, -- ,''`. : :' :Romain Francoise <[EMAIL PROTECTED]> `. `' http://people.debian.org/~rfr

Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2007-01-02 Thread Romain Francoise
Vincent Lefevre <[EMAIL PROTECTED]> writes: > IMHO, it would be simpler that the HTML mode enables it (and it > should be disabled by default, i.e. for non-HTML files). Perhaps, yes. I'll ask on emacs-devel. Thanks, -- ,''`. : :' :Romain Francoise <[EMAIL PROTECTED]> `. `'

Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2007-01-02 Thread Vincent Lefevre
On 2007-01-02 20:15:43 +0100, Romain Francoise wrote: > Vincent Lefevre <[EMAIL PROTECTED]> writes: > > > The file was generated by a reply by mail (the HTML code was > > included in my reply). So I didn't write it and couldn't (and > > wouldn't want to) change it. > > Ah, that's a different matt

Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2007-01-02 Thread Romain Francoise
Vincent Lefevre <[EMAIL PROTECTED]> writes: > The file was generated by a reply by mail (the HTML code was > included in my reply). So I didn't write it and couldn't (and > wouldn't want to) change it. Ah, that's a different matter entirely, then. This mode should probably disable this auto-dete

Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2006-12-31 Thread Vincent Lefevre
On 2006-12-31 15:13:57 +0100, Romain Francoise wrote: > Yes, that's because you have a different encoding specified in the > META tag of the HTML snippet, and Emacs uses it to set the encoding > for the buffer. > > You have two solutions: > > - add -*- coding: utf-8 -*- at the top of your file t

Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2006-12-31 Thread Romain Francoise
Hi Vincent, Vincent Lefevre <[EMAIL PROTECTED]> writes: > When I open the attached file with > emacs-snapshot-gtk emacs22-encoding > the 3 accented characters are displayed as: > \303\251\303\250\303\252 > Without the HTML lines, the file is opened correctly. Yes, that's because you have a d

Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2006-12-27 Thread Vincent Lefevre
On 2006-12-27 15:25:44 +0100, Sven Joachim wrote: > Your file incorrectly specifies > > charset=us-acii > > in the HTML header (instead of utf-8) and Emacs just obeys that, > overriding its autodetection of the coding system. No, this is a text/plain file containing a bit of HTML. And the

Bug#404236: emacs-snapshot: mis-detected charset in text file with ASCII-only HTML

2006-12-27 Thread Sven Joachim
Vincent Lefevre writes: > the 3 accented characters are displayed as: > > \303\251\303\250\303\252 > > Without the HTML lines, the file is opened correctly. Your file incorrectly specifies charset=us-acii in the HTML header (instead of utf-8) and Emacs just obeys that, overriding its