From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6974: Emacs doesn't like Swedish =?utf-8?b?w6Q=?= (on w32) Date: Fri, 03 Sep 2010 16:49:29 +0300 Message-ID: <83mxrzhr86.fsf@gnu.org> References: <4C80ABD4.8090106@easy-emacs.de> <83tym7i4jj.fsf@gnu.org> <4C80C3D8.5020308@easy-emacs.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1283523032 26047 80.91.229.12 (3 Sep 2010 14:10:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Sep 2010 14:10:32 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 03 16:10:29 2010 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.69) (envelope-from ) id 1OrWyK-0008IK-GB for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Sep 2010 16:10:28 +0200 Original-Received: from localhost ([127.0.0.1]:58025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrWyJ-0000ov-Og for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Sep 2010 10:10:27 -0400 Original-Received: from [140.186.70.92] (port=42685 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrWxm-0000b1-1p for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 10:09:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrWxk-0006Ct-QN for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 10:09:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38279) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrWxk-0006Co-O1 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 10:09:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OrWdZ-0006XD-Rs; Fri, 03 Sep 2010 09:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Sep 2010 13:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6974 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.128352168425111 (code B ref -1); Fri, 03 Sep 2010 13:49:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Sep 2010 13:48:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrWce-0006Wy-5p for submit@debbugs.gnu.org; Fri, 03 Sep 2010 09:48:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrWcc-0006Wc-B5 for submit@debbugs.gnu.org; Fri, 03 Sep 2010 09:48:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrWeJ-0002FE-Be for submit@debbugs.gnu.org; Fri, 03 Sep 2010 09:49:48 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:49928) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrWeJ-0002FA-9N for submit@debbugs.gnu.org; Fri, 03 Sep 2010 09:49:47 -0400 Original-Received: from [140.186.70.92] (port=51373 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrWeI-0004tK-4b for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 09:49:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrWeG-0002Ej-U4 for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 09:49:45 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:58858) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrWeG-0002Eb-MN for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 09:49:44 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L8600F00BKV4C00@a-mtaout21.012.net.il> for bug-gnu-emacs@gnu.org; Fri, 03 Sep 2010 16:49:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.202.93]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8600EGSBQ7N6A0@a-mtaout21.012.net.il>; Fri, 03 Sep 2010 16:49:20 +0300 (IDT) In-reply-to: <4C80C3D8.5020308@easy-emacs.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 03 Sep 2010 09:49:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:39929 Archived-At: > Date: Fri, 03 Sep 2010 11:46:00 +0200 > From: Andreas R=C3=B6hler > CC: bug-gnu-emacs@gnu.org >=20 > > The most probable reason for Emacs not to decode the file correct= ly > > (as UTF-8) is that the file includes some bytes that are invalid = UTF-8 > > sequences. What happens if you force UTF-8 with "C-x RET c" befo= re > > visiting the file with "C-x C-f"? > > >=20 > All fine at the first glance than. >=20 > However, re-opening the newly saved buffer repeats the wrong displa= y. Sure, because the problem that caused Emacs to decode the file as raw-text is still in the file. > Also when saving, it always prompts for coding-system, suggests raw= -text=20 > first. Expected, since there are problematic characters in the file. Try this: M-: (unencodable-char-position (point-min) (point-max) 'utf-8) RET It should show you the first position in the buffer where you have a character that cannot be encoded by UTF-8. If all the characters can be encoded by UTF-8, this will evaluate to nil. > Setting buffer-file-coding-system explicitly to utf-8-unix, followe= d by=20 > a save, doesn't change the wrong display after new opening. And it shouldn't.