path: root/win32/dir.h
diff options
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-28 07:22:18 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-28 07:22:18 +0000
commit22d5cf92263998d59d524c706b21c054c8ac53d2 (patch)
tree2c591943312b36e8f481b0037e5cf070cc2d5a88 /win32/dir.h
parente269a71eeb2e360c0882b6c8309b80425d90ddd5 (diff)
* win32/{win32.c,dir.h} (rb_w32_uopendir): new API to pass UTF-8 path.
* win32/win32.c (opendir_internal, rb_w32_opendir): extract and merge common part of rb_w32_opendir() and rb_w32_uopendir(). * dir.c (do_opendir, glob_helper): encoding. * dir.c (dir_initialize, do_opendir): convert path to UTF-8 and call rb_w32_uopendir() instead of rb_w32_opendir() on Windows. fixes #4491, reported by Joey Zhou. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/dir.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/dir.h b/win32/dir.h
index a728b40b4c..12a0e92b36 100644
--- a/win32/dir.h
+++ b/win32/dir.h
@@ -28,6 +28,7 @@ typedef struct {
DIR* rb_w32_opendir(const char*);
+DIR* rb_w32_uopendir(const char*);
struct direct* rb_w32_readdir(DIR *);
struct direct* rb_w32_readdir_with_enc(DIR *, rb_encoding *);
long rb_w32_telldir(DIR *);