From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#2497: 23.0.91; Fails to read UTF-8 on Win2k Date: Fri, 27 Feb 2009 17:02:19 +0000 Organization: University of Cambridge Message-ID: References: <877i3c55tg.fsf@tum.de> Reply-To: Leo , 2497@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1235755491 1133 80.91.229.12 (27 Feb 2009 17:24:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Feb 2009 17:24:51 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 27 18:26:07 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ld6TG-0006Se-Tu for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2009 18:25:59 +0100 Original-Received: from localhost ([127.0.0.1]:47874 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ld6Rw-0005xi-1N for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Feb 2009 12:24:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ld6R4-0005JG-W3 for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:23:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ld6R3-0005I7-RQ for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:23:42 -0500 Original-Received: from [199.232.76.173] (port=35367 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ld6R3-0005Ht-L5 for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:23:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58085) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ld6R2-0007YF-4Y for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:23:40 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1RHNc9m030784; Fri, 27 Feb 2009 09:23:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1RHA4U7026882; Fri, 27 Feb 2009 09:10:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Leo Original-Sender: news Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 27 Feb 2009 17:10:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2497 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123575416524346 (code B ref -1); Fri, 27 Feb 2009 17:10:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Feb 2009 17:02:45 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1RH2dcH024335 for ; Fri, 27 Feb 2009 09:02:41 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ld66g-0002Dw-1A for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:02:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ld66e-0002DV-AX for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:02:37 -0500 Original-Received: from [199.232.76.173] (port=59308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ld66d-0002DC-MB for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:02:36 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:57985 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ld66d-0004BB-37 for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 12:02:35 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ld66Y-0002Cw-ET for bug-gnu-emacs@gnu.org; Fri, 27 Feb 2009 17:02:30 +0000 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Feb 2009 17:02:30 +0000 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Feb 2009 17:02:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:PPCJNHuQlYMkF3HLaLbj0kKX0oo= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-MIME-Autoconverted: from 8bit to quoted-printable by rzlab.ucr.edu id n1RHNc9m030784 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 27 Feb 2009 12:23:42 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25792 Archived-At: On 2009-02-27 16:11 +0000, Juanma Barranquero wrote: > On Fri, Feb 27, 2009 at 15:10, Uwe Siart wrote: > >> I'm using the windows port of 23.0.91 on Win2k SP4 and I found that it >> fails to read utf-8 encoded files correctly. When visiting a file in >> utf-8 encoding all characters above 255 are screwed up and "C-h C RET" >> indicates iso-latin1-dos for saving the file. This has not been an >> issue in 23.0.90. > > Do you have a specific example of a UTF-8 coded file that was detected > as UTF-8 in 23.0.90 and it is detected as Latin-1 in 23.0.91? > > For example, I create a UTF-8 file (without UTF-8 byte-order-mark > "signature") with just the following contents: > > ca=F1=F3n > > And 23.0.90 also thinks it is Latin-1. > > That said, if you need UTF-8 to be given more priority than Latin-1, > etc, you can use `set-coding-system-priority' in your .emacs. > > Juanma I have the following code in my .emacs when I changed to w32 last June. So the problem might exist longer. ;;; FIXME: find out why GNU/Linux does not need this (prefer-coding-system 'utf-8) I just tested some Chinese files. Without that line, all of them are being opened in latin-1 encoding and are unreadable. Tested in GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26 --=20 .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.