--- ../w3m-0.2.1-orig/anchor.c Fri Sep 28 17:46:43 2001 +++ anchor.c Fri Sep 28 18:38:52 2001 @@ -6,6 +6,7 @@ #include "fm.h" #include "myctype.h" #include "regex.h" +#include "urn.h" #define FIRST_ANCHOR_SIZE 30 @@ -45,7 +46,7 @@ } } a = &al->anchors[i]; - a->url = url; + a->url = strncasecmp((char*)url, "urn:", 4) ? url : convert_urn(url); a->target = target; a->referer = referer; a->start = bp; --- ../w3m-0.2.1-orig/main.c Fri Sep 28 17:46:43 2001 +++ main.c Fri Sep 28 18:36:19 2001 @@ -65,6 +65,8 @@ int prev_key = -1; int on_target = 1; +Str urn_buffer; + static void _goLine(char*); #define PREC_NUM (prec_num ? prec_num : 1) #define PREC_LIMIT 10000 @@ -207,6 +209,7 @@ srand48(time(0)); + urn_buffer = Strnew(); NO_proxy_domains = newTextList(); fileToDelete = newTextList(); @@ -729,6 +732,7 @@ prev_key = CurrentKey; CurrentKey = -1; } + Str_free(urn_buffer); } static void --- ../w3m-0.2.1-orig/fm.h Fri Sep 28 17:46:43 2001 +++ fm.h Fri Sep 28 18:36:19 2001 @@ -804,6 +804,8 @@ global TextList *backend_batch_commands init(NULL); int backend( void ); +global Str urn_buffer; + /* * Externals */ --- ../w3m-0.2.1-orig/proto.h Fri Sep 28 17:46:43 2001 +++ proto.h Fri Sep 28 18:38:19 2001 @@ -511,4 +511,5 @@ extern void wrapToggle(void); extern void saveBufferInfo(void); extern char*get_os2_dft(const char*,char*); +extern char* convert_urn(const char*); #include "indep.h" --- ../w3m-0.2.1-orig/XMakefile Fri Sep 28 17:46:43 2001 +++ XMakefile Fri Sep 28 18:36:07 2001 @@ -5,9 +5,9 @@ form.o map.o frame.o rc.o menu.o mailcap.o\ func.o cookie.o history.o backend.o $(KEYBIND_OBJ) LSRCS=terms.c conv.c url.c ftp.c anchor.c mimehead.c hash.c parsetagx.c\ - tagtable.c istream.c + tagtable.c istream.c urn.c LOBJS=terms.o conv.o url.o ftp.o anchor.o mimehead.o hash.o parsetagx.o\ - tagtable.o istream.o + tagtable.o istream.o urn.o LLOBJS=version.o ALIBOBJS=Str.o indep.o regex.o textlist.o parsetag.o myctype.o ALIB=libindep.a --- ../w3m-0.2.1-orig/XMakefile.dist Fri Sep 28 17:46:43 2001 +++ XMakefile.dist Fri Sep 28 18:35:58 2001 @@ -5,9 +5,9 @@ form.o map.o frame.o rc.o menu.o mailcap.o\ func.o cookie.o history.o $(KEYBIND_OBJ) LSRCS=terms.c conv.c url.c ftp.c anchor.c mimehead.c hash.c parsetagx.c\ - tagtable.c istream.c + tagtable.c istream.c urn.c LOBJS=terms.o conv.o url.o ftp.o anchor.o mimehead.o hash.o parsetagx.o\ - tagtable.o istream.o + tagtable.o istream.o urn.o LLOBJS=version.o ALIBOBJS=Str.o indep.o regex.o textlist.o parsetag.o myctype.o ALIB=libindep.a