When starting pico 5.04, I get a segfault.
$ gdb pico
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.4"...
(gdb) run
Starting program: /usr/local/bin/pico
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 5478, thread 0x8740dc00]
0x1c001ff7 in main (argc=1, argv=0xcfbc3e84) at main.c:188
188 display_charmap = cpstr(display_character_set);
(gdb) bt
#0 0x1c001ff7 in main (argc=1, argv=0xcfbc3e84) at main.c:188
(gdb) bt full
#0 0x1c001ff7 in main (argc=1, argv=0xcfbc3e84) at main.c:188
c = 5
bp = (BUFFER *) 0x3c05966c
viewflag = 0
starton = 0
setlocale_collate = 1
bname = "\003\000\000\000\000\000\000\000\001\000\000\000lp3\177"
file_to_edit = 0x0
display_charmap = 0x0
keyboard_charmap = 0x0
err = 0x0
--
Antoine
The following patch fixes it:
--- pith/charconv/utf8.c.orig Thu Apr 3 00:09:20 2008
+++ pith/charconv/utf8.c Fri Jan 23 12:38:46 2009
@@ -2141,7 +2141,8 @@ nl_langinfo_codeset_wrapper(void)
if(!strcmp("ANSI_X3.4-1968", ret)
|| !strcmp("ASCII", ret)
|| !strcmp("C", ret)
- || !strcmp("POSIX", ret))
+ || !strcmp("POSIX", ret)
+ || !strcmp("646", ret))
ret = "US-ASCII";
else if(!strucmp(ret, "UTF8"))
ret = "UTF-8";
--
Antoine