unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: emacs-pretest-bug@gnu.org, lennart.borgman@gmail.com
Subject: Re: 23.0.60; Can't start emacs when filename contains national character
Date: Sat, 29 Mar 2008 14:23:04 +0300	[thread overview]
Message-ID: <utzipixk7.fsf@gnu.org> (raw)
In-Reply-To: <f7ccd24b0803290234h421d7326n8f3a41d9d4a545fb@mail.gmail.com> (lekktu@gmail.com)

> Date: Sat, 29 Mar 2008 10:34:59 +0100
> From: "Juanma Barranquero" <lekktu@gmail.com>
> Cc: emacs-pretest-bug@gnu.org
> 
> On Sat, Mar 29, 2008 at 3:20 AM, Lennart Borgman (gmail)
> <lennart.borgman@gmail.com> wrote:
> > When starting Emacs with "emacs -Q" it crashes if the path to ~/.emacs
> >  contains a Swedish national character. Running under gdb I get the
> >  following backtrace:
> 
> This is a backtrace in my system. The HOME dir was C:\año
> 
> (gdb) backtrace
> #0  w32_abort () at w32fns.c:9368
> #1  0x010c8a85 in multibyte_chars_in_text (ptr=0x82f932 "c:/a\361o",
> nbytes=6) at character.c:616
> #2  0x01022765 in make_specified_string (contents=0x82f932
> "c:/a\361o", nchars=-1, nbytes=6, multibyte=1) at alloc.c:2446
> #3  0x01010e63 in Fexpand_file_name (name=19162171,
> default_directory=41388995) at fileio.c:1723

It looks like this is happening because expand-file-name calls egetenv
to expand "~", but egetenv returns a unibyte string, while
expand-file-name is not prepared for this, because it makes up its
mind about multibyteness of the file name too early.

Unless I'm missing something, the same should happen on Unix as well.
Could someone try this on Unix or GNU system with HOME set to a
directory with non-ASCII characters, and see if Emacs crashes there as
well?  (This is important for me to know whether to prepare a
Windows-only change or a change that should fix all systems.)




  reply	other threads:[~2008-03-29 11:23 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 [this message]
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
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

  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=utzipixk7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=lekktu@gmail.com \
    --cc=lennart.borgman@gmail.com \
    /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).