Subject: bug#93: 23.0.60; Can't start emacs when filename contains national character

From: "Lennart Borgman \(gmail\)" <[email-masked]>
Date: Sat, 29 Mar 2008 03:20:03 +0100

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:

(gdb) run -Q
Starting program: C:\pf\Emacs\emacs\bin/emacs.exe -Q

Program received signal SIGTRAP, Trace/breakpoint trap.
0x7c901231 in _end__ ()
(gdb) bt
#0  0x7c901231 in _end__ ()
#1  0x011b5ebe in w32_abort () at w32fns.c:9382
#2  0x01148216 in multibyte_chars_in_text (
     ptr=0x82f60d "õker/Application Data", nbytes=48) at character.c:616
#3  0x010287c5 in make_specified_string (
     contents=0x82f5f2 "c:/Documents and Settings/Sõker/Application Data",
     nchars=-1, nbytes=48, multibyte=1) at alloc.c:2446
#4  0x0107b3b3 in Fexpand_file_name (name=33726579, 
default_directory=39479299)
     at fileio.c:1723
#5  0x01022e85 in Ffuncall (nargs=2, args=0x82f7a8) at eval.c:3028
#6  0x01152efc in Fbyte_code (bytestr=18878979, vector=18878996, 
maxdepth=48)
     at bytecode.c:679
#7  0x0102359e in funcall_lambda (fun=18878940, nargs=1, 
arg_vector=0x82f9d4)
     at eval.c:3212
#8  0x0102307d in Ffuncall (nargs=2, args=0x82f9d0) at eval.c:3071
#9  0x01152efc in Fbyte_code (bytestr=18957467, vector=18957484, 
maxdepth=48)
     at bytecode.c:679
#10 0x0102359e in funcall_lambda (fun=18957444, nargs=0, 
arg_vector=0x82fb70)
     at eval.c:3212
#11 0x01023289 in apply_lambda (fun=18957444, args=24229889, eval_flag=1)
     at eval.c:3136
#12 0x010221aa in Feval (form=24972573) at eval.c:2398
#13 0x01005dbf in top_level_2 () at keyboard.c:1379
---Type <return> to continue, or q <return> to quit---
#14 0x010209e5 in internal_condition_case (bfun=0x1005dac <top_level_2>,
     handlers=24293521, hfun=0x1005a32 <cmd_error>) at eval.c:1494
#15 0x01005df1 in top_level_1 () at keyboard.c:1387
#16 0x010204d6 in internal_catch (tag=24289617, func=0x1005dc1 
<top_level_1>,
     arg=24229889) at eval.c:1230
#17 0x01005d33 in command_loop () at keyboard.c:1342
#18 0x0100564e in recursive_edit_1 () at keyboard.c:958
#19 0x010057b2 in Frecursive_edit () at keyboard.c:1020
#20 0x0100279f in main (argc=2, argv=0xa82748) at emacs.c:1784
#21 0x0100124b in __mingw_CRTStartup ()
#22 0x01001298 in mainCRTStartup ()
(gdb)

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
  of 2008-03-29
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags 
-Ic:/g/include -fno-crossjumping'