aboutsummaryrefslogtreecommitdiffstats
path: root/epan/filesystem.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-01-12 22:32:29 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-01-12 22:32:29 +0000
commita9f4ae4f9940b1e3fcce14926711fa8f0ea37cc8 (patch)
treed6d5d9f564c907736cddc29797d94d992864722b /epan/filesystem.h
parent6e80585275fa2719c42b528ae7b35bd758efb74f (diff)
fix #648:
Win32 only: reading a pathname from an environment var requires us to read it in as unicode somehow and convert it to utf8. Using _wgetenv should work under all circumstances on NT, using getenv and g_locale_to_utf8 on Windows OT is the best we can do in this case. svn path=/trunk/; revision=17024
Diffstat (limited to 'epan/filesystem.h')
-rw-r--r--epan/filesystem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/filesystem.h b/epan/filesystem.h
index 060937ef16..644cabc8d3 100644
--- a/epan/filesystem.h
+++ b/epan/filesystem.h
@@ -137,4 +137,11 @@ extern gboolean file_exists(const char *fname);
*/
extern gboolean files_identical(const char *fname1, const char *fname2);
+#ifdef WIN32
+/*
+ * utf8 version of getenv, needed to get win32 filename paths
+ */
+char *getenv_utf8(const char *varname);
+#endif
+
#endif /* FILESYSTEM_H */