unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: 6974@debbugs.gnu.org
Subject: bug#6974: Emacs doesn't like Swedish ä (on w32)
Date: Thu, 2 Sep 2010 23:58:04 +0200	[thread overview]
Message-ID: <AANLkTinOD6te0UfaUsiLproqyM8zMKBoKjbt-TjL4dC-@mail.gmail.com> (raw)

I have a file whose name contains the Swedish char ä (a with two dots
above, 228 in latin-1).

I have seen several strange things with this. Here are some I remember:


I start from "emacs -Q". In an org-mode file I try to insert a link to
this file with "C-c C-l file FILENAME".


* After M-x set-language-environment RET RET (i.e. "English") and then
opening a new org file.

Works nicely. Examining the char "ä" in the link in the org buffer
gives as expected.

        character: ä (228, #o344, #xe4)
preferred charset: unicode-bmp
		   (Unicode Basic Multilingual Plane (U+0000..U+FFFF))
       code point: 0xE4
           syntax: w 	which means: word
         category: .:Base, j:Japanese, l:Latin
      buffer code: #xC3 #xA4
        file code: #xE4 (encoded by coding system iso-latin-1-dos)
          display: by this font (glyph code)
    uniscribe:-outline-Courier
New-normal-normal-normal-mono-13-*-*-*-c-*-iso8859-1 (#x6C)

In this case I can save the file as usual.


* After M-x set-language-environment RET utf-8 RET and then opening a
new org file.

When choosing the file the char "ä" is shown as \344. It looks the
same when inserted in the buffer as an org link to the file.

        character:   (4194276, #o17777744, #x3fffe4)
preferred charset: eight-bit (Raw bytes 128-255)
       code point: 0xE4
           syntax: w 	which means: word
      buffer code: #xE4
        file code: not encodable by coding system utf-8-dos
          display: no font available

After this I can not save the file (or rather Emacs prompts me for a
coding system).


I also saw that pasting the file name in some circumstances converts
the char "ä" (or was it \344) to a space. Unfortunately I do not
remember how that happened and I can not reproduce it now. (But I am
very sure it happened this morning.)


In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-08-10
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags
-Ic:/g/include -fno-crossjumping'





             reply	other threads:[~2010-09-02 21:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 21:58 Lennart Borgman [this message]
2010-09-03  1:44 ` bug#6974: Emacs doesn't like Swedish ä (on w32) 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
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=AANLkTinOD6te0UfaUsiLproqyM8zMKBoKjbt-TjL4dC-@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=6974@debbugs.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).