|
Although 8.3 name generation can be disabled on Windows. fsutil.exe behavior query disable8dot3 fsutil.exe behavior set disable8dot3 <value>This is actually good, since 8.3 name generation requires the names to be unique, and if you happen to have a very long directory with names starting with the same 11 characters prefix, then everytime a new file is added the NTFS has to find out what name is available and provide one (I doubt there is a set<> of some sort kept per folder, and that the lookup is probably linear - hence O(N)).
On 8/15/2012 11:45 PM, steve donovan wrote:
On Thu, Aug 16, 2012 at 8:35 AM, Paul K <paulclinger@yahoo.com> wrote:information). What options do I have for working with unicode file names? I want to be able to read/write files with unicode paths. This is using Lua 5.1.4.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. Sometimes a legacy option works nicely ;) steve d.