[vlc-commits] Fix vlc_readdir() on non-UTF-8 POSIX systems for now

Rémi Denis-Courmont git at videolan.org
Tue Oct 11 19:24:06 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 11 20:23:40 2011 +0300| [f321630f360672f3e5353c077d3f71d7a6352bf1] | committer: Rémi Denis-Courmont

Fix vlc_readdir() on non-UTF-8 POSIX systems for now

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f321630f360672f3e5353c077d3f71d7a6352bf1
---

 src/posix/filesystem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
index 1c26099..b33b485 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -211,7 +211,7 @@ char *vlc_readdir( DIR *dir )
         errno = val;
     else if (ent != NULL)
 #ifndef __APPLE__
-        path = strdup (ent->d_name);
+        path = FromLocaleDup (ent->d_name);
 #else
         path = FromCharset ("UTF-8-MAC", ent->d_name, strlen (ent->d_name));
 #endif



More information about the vlc-commits mailing list