summaryrefslogtreecommitdiff
path: root/module
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 /module
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 'module')
-rw-r--r--module/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/module.c b/module/module.c
index 417418c..6f5a3f7 100644
--- a/module/module.c
+++ b/module/module.c
@@ -409,7 +409,7 @@ int errno_to_iconv_error(int num)
const char *get_aliases_path(void)
{
- char *ucpath;
+ const char *ucpath;
int alen;
static char aliases[4096];
@@ -421,7 +421,7 @@ const char *get_aliases_path(void)
/* Get !Unicode resource path */
#ifdef __riscos__
- ucpath = getenv("Unicode$Path");
+ ucpath = "Unicode:";
#else
ucpath = getenv("UNICODE_DIR");
#endif