diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-01-12 22:32:29 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-01-12 22:32:29 +0000 |
commit | a9f4ae4f9940b1e3fcce14926711fa8f0ea37cc8 (patch) | |
tree | d6d5d9f564c907736cddc29797d94d992864722b /epan/addr_resolv.c | |
parent | 6e80585275fa2719c42b528ae7b35bd758efb74f (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/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index 3d5c199b68..3c503d1d74 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -1640,7 +1640,7 @@ host_name_lookup_init(void) { */ #ifdef WIN32 - sysroot = getenv("WINDIR"); + sysroot = getenv_utf8("WINDIR"); if (sysroot != NULL) { /* * The file should be under WINDIR. |