unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
Cc: bug-gnu-emacs@gnu.org
Subject: bug#6974: Emacs doesn't like Swedish ä (on w32)
Date: Fri, 03 Sep 2010 16:49:29 +0300	[thread overview]
Message-ID: <83mxrzhr86.fsf@gnu.org> (raw)
In-Reply-To: <4C80C3D8.5020308@easy-emacs.de>

> Date: Fri, 03 Sep 2010 11:46:00 +0200
> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
> CC: bug-gnu-emacs@gnu.org
> 
> > The most probable reason for Emacs not to decode the file correctly
> > (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" before
> > visiting the file with "C-x C-f"?
> >
> 
> All fine at the first glance than.
> 
> However, re-opening the newly saved buffer repeats the wrong display.

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 
> 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, followed by 
> a save, doesn't change the wrong display after new opening.

And it shouldn't.






  reply	other threads:[~2010-09-03 13:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 21:58 bug#6974: Emacs doesn't like Swedish ä (on w32) Lennart Borgman
2010-09-03  1:44 ` Jason Rumney
2010-09-03 11:20   ` Lennart Borgman
2010-09-03  8:03 ` Andreas Röhler
2010-09-03  9:01   ` Eli Zaretskii
2010-09-03  9:46     ` Andreas Röhler
2010-09-03 13:49       ` Eli Zaretskii [this message]
2010-09-03 16:23         ` Andreas Röhler
2010-09-03 17:59           ` Eli Zaretskii
2010-09-03 19:33             ` Andreas Röhler
2010-09-03 21:05               ` Eli Zaretskii
2010-09-04  6:22                 ` Andreas Röhler
2010-09-04  6:43                   ` Eli Zaretskii
2010-09-04  7:30                     ` Andreas Röhler
2010-09-04  8:16                       ` bug#6971: " Eli Zaretskii
2010-09-03  8:08 ` Eli Zaretskii
2010-09-03 11:19   ` Lennart Borgman
2010-09-03 11:59     ` Lennart Borgman
2010-09-03 13:38       ` bug#6974: " Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83mxrzhr86.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=andreas.roehler@easy-emacs.de \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).