emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 23.0.60; Can't start emacs when filename contains national character


From: Eli Zaretskii
Subject: Re: 23.0.60; Can't start emacs when filename contains national character
Date: Sat, 29 Mar 2008 23:54:26 +0300

> From: Stefan Monnier <address@hidden>
> Date: Sat, 29 Mar 2008 16:22:53 -0400
> Cc: address@hidden, address@hidden, address@hidden,
>       address@hidden
> 
> > 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.

I'm not sure it's warranted: we do something like

    if (STRING_MULTIBYTE (foo))
      foo = ENCODE_FILE (foo);

in quite a few more places, so it's probably efficient enough.  It's
just that en/decode_coding is so scarily large, while string-to/make-*
are so seductively compact and simple...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]