all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org, Kenichi Handa <handa@m17n.org>,
	Jason Rumney <jasonr@gnu.org>
Subject: Re: [brakjoller@gmail.com: setting utf-16 as file-name-coding-system locks up emacs]
Date: 11 Aug 2004 10:57:43 -0400	[thread overview]
Message-ID: <87n011g28q.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <c99f54dd04081103597db37c70@mail.gmail.com>

> I see.  But what if the test that file-exists-p does was to encode the
> "test-string" first in the same encoding? Or maybe this would be crazy,
> this isn't exactly my area of expertise. :)

I do not understand what you are trying to say here.  The problem is that
(file-exists-p "/") needs to turn the stream of *characters* "/" into
a stream of *bytes* (which is what the encoding is for) and if you specify
the wrong encoding you might get the wrong bytes, so the OS will of course
not find the corresponding file.

> Anyway, the conclusion of all this seems to be that Emacs is not 100 %
> ready for unicode yet so I have to avoid to try torture it with these in
> the meantime... :)

While the unicode support is not finished (and probably never will be given
the amount of detail you can get into if you care to), it has nothing to do
with the problem at hand.  The only valid conclusion here is that your file
names are not encoded in utf-16 and thus you get what you deserve if you
wrongly tell Emacs to use utf-16 encoding for filenames.


        Stefan

  reply	other threads:[~2004-08-11 14:57 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 [this message]
2004-08-12  8:22                         ` Mattis
2004-08-12 11:00                           ` Jason Rumney
2004-08-12 11:36                           ` Kenichi Handa
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=87n011g28q.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    --cc=jasonr@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 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.