summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-19 21:12:27 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-19 21:12:27 +0000
commit395a92683590c3f72674471675781afd01d9f7c7 (patch)
treebdf1cd937d92ac06065e9aeb6c4ad38f4109bddb /src
parentf36e60202981eaccbeda479cb50ebe13dc028b5e (diff)
downloadiconv-395a92683590c3f72674471675781afd01d9f7c7.tar.gz
iconv-395a92683590c3f72674471675781afd01d9f7c7.tar.bz2
On RISC OS, use Unicode:, rather than attempting to getenv("Unicode$Path") and concatenating the leafname on the end.
svn path=/trunk/iconv/; revision=5744
Diffstat (limited to 'src')
-rw-r--r--src/eightbit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eightbit.c b/src/eightbit.c
index c75337c..da1cd4b 100644
--- a/src/eightbit.c
+++ b/src/eightbit.c
@@ -301,13 +301,13 @@ void iconv_eightbit_delete(struct encoding_context *e)
const char *get_table_path(const char *table)
{
- char *ucpath;
+ const char *ucpath;
int plen;
static char path[4096];
/* Get !Unicode resource path */
#ifdef __riscos__
- ucpath = getenv("Unicode$Path");
+ ucpath = "Unicode:";
#else
ucpath = getenv("UNICODE_DIR");
#endif