From a6eca8d3e817f0b2477d44c971a6365eb77cc6c2 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 31 Jul 2004 12:56:25 +0000 Subject: [project @ 2004-07-31 12:56:25 by jmb] Prevent UnixLib munging suffixes svn path=/import/netsurf/; revision=1169 --- riscos/filetype.c | 2 +- riscos/gui.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/riscos/filetype.c b/riscos/filetype.c index 837151521..039d26348 100644 --- a/riscos/filetype.c +++ b/riscos/filetype.c @@ -56,7 +56,7 @@ const char *fetch_filetype(const char *unix_path) LOG(("unix_path = '%s'", unix_path)); /* convert path to RISC OS format and read file type */ - r = __riscosify(unix_path, 0, 0, path, len, 0); + r = __riscosify(unix_path, 0, __RISCOSIFY_NO_SUFFIX, path, len, 0); if (r == 0) { LOG(("__riscosify failed")); return "application/riscos"; diff --git a/riscos/gui.c b/riscos/gui.c index 1b2e5178f..858a0ccf7 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -60,6 +60,9 @@ const char *__dynamic_da_name = "NetSurf"; /**< For UnixLib. */ int __feature_imagefs_is_file = 1; /**< For UnixLib. */ +/* default filename handling */ +int __riscosify_control = __RISCOSIFY_NO_SUFFIX | + __RISCOSIFY_NO_REVERSE_SUFFIX; char *NETSURF_DIR; -- cgit v1.2.3