Win32: Unicode file name support (dirent)
commit42cf0a369816fa81888b612680a3714a19e02da1
authorKarsten Blees <blees@dcon.de>
Fri, 7 Jan 2011 19:34:30 +0000 (7 20:34 +0100)
committerKarsten Blees <blees@dcon.de>
Thu, 1 Dec 2011 14:57:55 +0000 (1 15:57 +0100)
tree3a50c0f8c1bf04491fc8b71a74f5233ef7985321
parent46b7ed0df94ea37063e070ef33c653086ebc2b25
Win32: Unicode file name support (dirent)

Changes opendir/readdir to use Windows Unicode APIs and convert between
UTF-8/UTF-16.

Removes parameter checks that are already covered by utftowcs.

Increases the size of dirent.d_name to accommodate the full
WIN32_FIND_DATA.cFileName converted to UTF-8 (UTF-16 to UTF-8 conversion
may grow by factor three in the worst case).

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/win32/dirent.c
compat/win32/dirent.h