From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: lekktu@gmail.com, lennart.borgman@gmail.com, svenjoac@gmx.de,
emacs-pretest-bug@gnu.org
Subject: Re: 23.0.60; Can't start emacs when filename contains national character
Date: Sat, 29 Mar 2008 16:22:53 -0400 [thread overview]
Message-ID: <jwv8x01s2se.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <ubq4xia7s.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 29 Mar 2008 22:47:19 +0300")
>> > That probably means I used the wrong to/make-multibyte function to fix
>> > the problem. Will look into it, thanks.
>>
>> I recommend to stay as far away from string-to/as/make-unit/multibyte
>> as possible. Use en/decode-coding-string instead.
> That's what I did eventually. I tried to be smart at first, to maybe
> avoid the overhead of full-fledged decoding, but gave up and used
> DECODE_FILE instead.
If the issue is performance, maybe we should just improve
(en|de)code-coding-string to recognize those few special cases and
redirect them to string-(to|as)-(uni|multi)byte.
Note that is set-unibyte-charset is never called (which should always be
the case now), string-make-foo is identical to string-to-foo.
So the remaining two cases ("to" and "as") work as follows:
"to" = `binary'
"as" = internal CS (i.e. `utf-8-emacs', but was `emacs-mule' before)
Funnily enough we do not have a coding-system `emacs-internal' which
would be `emacs-mule' in Emacs-22 and `utf-8-emacs' in Emacs-23.
I guess we can use
(if (coding-system-p 'utf-8-emacs) 'utf-8-emacs 'emacs-mule)
if we need it.
Stefan
next prev parent reply other threads:[~2008-03-29 20:22 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-29 2:20 23.0.60; Can't start emacs when filename contains national character Lennart Borgman (gmail)
2008-03-29 9:34 ` Juanma Barranquero
2008-03-29 11:23 ` Eli Zaretskii
2008-03-29 12:21 ` Sven Joachim
2008-03-29 13:01 ` Eli Zaretskii
2008-03-29 13:53 ` Eli Zaretskii
2008-03-29 14:45 ` Sven Joachim
2008-03-29 15:07 ` Eli Zaretskii
2008-03-29 15:31 ` Eli Zaretskii
2008-03-29 16:02 ` Sven Joachim
2008-03-29 16:12 ` Eli Zaretskii
2008-03-29 16:43 ` Sven Joachim
2008-03-29 15:43 ` Lennart Borgman (gmail)
2008-03-29 15:53 ` Eli Zaretskii
2008-03-29 17:55 ` Lennart Borgman (gmail)
2008-03-29 18:35 ` Eli Zaretskii
2008-03-29 19:15 ` Stefan Monnier
2008-03-29 19:47 ` Eli Zaretskii
2008-03-29 20:22 ` Stefan Monnier [this message]
2008-03-29 20:54 ` Eli Zaretskii
2008-03-29 23:29 ` YAMAMOTO Mitsuharu
2008-03-29 12:23 ` Andreas Schwab
2008-03-29 12:31 ` Sven Joachim
2008-03-29 13:20 ` Andreas Schwab
2008-03-29 13:54 ` Eli Zaretskii
2008-03-29 16:08 ` Andreas Schwab
2008-03-29 16:12 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv8x01s2se.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eliz@gnu.org \
--cc=emacs-pretest-bug@gnu.org \
--cc=lekktu@gmail.com \
--cc=lennart.borgman@gmail.com \
--cc=svenjoac@gmx.de \
/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.