From: Kenichi Handa <handa@m17n.org>
Cc: jasonr@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [brakjoller@gmail.com: setting utf-16 as file-name-coding-system locks up emacs]
Date: Thu, 12 Aug 2004 20:36:12 +0900 (JST) [thread overview]
Message-ID: <200408121136.UAA18142@etlken.m17n.org> (raw)
In-Reply-To: <c99f54dd0408120122401e9526@mail.gmail.com> (message from Mattis on Thu, 12 Aug 2004 10:22:03 +0200)
In article <c99f54dd0408120122401e9526@mail.gmail.com>, Mattis <brakjoller@gmail.com> writes:
> OK. So, the best would be to have the encoding set to
> "undecided" and then let Emacs figure out which encoding
> is used, right?
Unfortunately, no. By that, Emacs may be able to decode the
file name corrrectly, but it doesn't remember the encoding
for the time it has to encode the file name.
I belive that Windows itself has a function to handle such a
file name consistently. So, I think the best is to make a
speical coding system, say windows-file-name, that works
only for Windows. It decodes file names into utf-8 sequence
(internal code of Emacs-Unicode), and encode file names into
locale encoding or utf-16le-with-signature depending on the
contents.
---
Ken'ichi HANDA
handa@m17n.org
next prev parent reply other threads:[~2004-08-12 11:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1BtYdG-0004bH-IO@fencepost.gnu.org>
[not found] ` <200408091228.VAA10104@etlken.m17n.org>
[not found] ` <c99f54dd0408091315edacc8d@mail.gmail.com>
[not found] ` <200408100133.KAA11854@etlken.m17n.org>
[not found] ` <c99f54dd0408100341410de4d5@mail.gmail.com>
[not found] ` <200408101058.TAA12976@etlken.m17n.org>
[not found] ` <c99f54dd040810043627699b54@mail.gmail.com>
[not found] ` <200408101144.UAA13100@etlken.m17n.org>
2004-08-10 12:01 ` [brakjoller@gmail.com: setting utf-16 as file-name-coding-system locks up emacs] Jason Rumney
2004-08-10 16:49 ` Mattis
2004-08-10 17:15 ` Stefan Monnier
2004-08-11 10:59 ` Mattis
2004-08-11 14:57 ` Stefan Monnier
2004-08-12 8:22 ` Mattis
2004-08-12 11:00 ` Jason Rumney
2004-08-12 11:36 ` Kenichi Handa [this message]
2004-08-12 12:31 ` Jason Rumney
2004-08-13 1:46 ` Kenichi Handa
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408121136.UAA18142@etlken.m17n.org \
--to=handa@m17n.org \
--cc=emacs-devel@gnu.org \
--cc=jasonr@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.