|
On 16/08/2012 09:45, steve donovan wrote:
One option on Windows is to use winapi: http://stevedonovan.github.com/winapi/api.html#short_path winapi.short_path takes an encoded path (UTF-8 or UTF-16) and returns the equivalent short path, which can be opened with io.open.
The LuaFAR [1] project has `io' module that overrides the native `io' for working in UTF-8 from Lua scripts. In particular, its io.open should work fine with Unicode paths.
[1] https://github.com/shmuz/LuaFAR -- Shmuel