summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--module/module.c4
-rw-r--r--src/eightbit.c4
-rw-r--r--test/GNU/table-from.c4
-rw-r--r--test/GNU/table-to.c4
4 files changed, 8 insertions, 8 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
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
diff --git a/test/GNU/table-from.c b/test/GNU/table-from.c
index f4ec661..56a0dab 100644
--- a/test/GNU/table-from.c
+++ b/test/GNU/table-from.c
@@ -104,7 +104,7 @@ int main (int argc, char* argv[])
const char* charset;
iconv_t cd;
int search_depth;
- char *ucpath;
+ const char *ucpath;
int alen;
char aliases[4096];
@@ -116,7 +116,7 @@ int main (int argc, char* argv[])
/* ensure the !Unicode resource exists */
#ifdef __riscos__
- ucpath = getenv("Unicode$Path");
+ ucpath = "Unicode:");
#else
ucpath = getenv("UNICODE_DIR");
#endif
diff --git a/test/GNU/table-to.c b/test/GNU/table-to.c
index 4ababb8..e8d11ad 100644
--- a/test/GNU/table-to.c
+++ b/test/GNU/table-to.c
@@ -37,7 +37,7 @@ int main (int argc, char* argv[])
const char* charset;
iconv_t cd;
int bmp_only;
- char *ucpath;
+ const char *ucpath;
int alen;
char aliases[4096];
@@ -49,7 +49,7 @@ int main (int argc, char* argv[])
/* ensure the !Unicode resource exists */
#ifdef __riscos__
- ucpath = getenv("Unicode$Path");
+ ucpath = "Unicode:");
#else
ucpath = getenv("UNICODE_DIR");
#endif