Hisham Muhammad
Hisham Muhammad
@moteus: would it be possible to detect from Lua which locale we're in and adapt accordingly? The standard function `os.setlocale()` does return a string that in my system contains the...
Unfortunately, I don't think it's viable. We collect information based on what the Lua debug library provides, and it is not fine-grained at the branch level. Its finest grain is...
> Next, I input "lua luacov", You can try the full path where the luacov main script is: ``` lua c:\.....\luacov ```
IMO `lfs.dir` should continue throwing error on errors. Reporting the kind of error in a programmable and forward-compatible manner would be a nice addition for luafilesystem 1.7.
If I follow correctly, this makes the dir() function always return UTF-8 strings. If that is the case, this is a breaking change — what happens when returning files with...
> I would be pleased to apply unicode to utf8 changes but only if @hishamhm agrees with that. That would be a great addition, but I think the right thing...
I understand that UTF-8 in the Lua side + Unicode functions in the Windows API is better. My concern is with backward compatibility. If I understand the Windows side of...
@sonoro1234 Thank you for the tests. This confirm that simply adopting the UTF-8 conversion approach of lfs_ffi is not possible for lfs 1.x, because it breaks compatibility with io.open(). And...
@SlySven as far as I can tell this is also how all file I/O in the Lua standard library works. Should we go the direction suggested by @sonoro1234 and provide...
@Tieske yes, it can. I have similar pure-Lua code in `luarocks.fs.*` using `lfs`. Might even move it out of there and into an `lfs/util.lua` module here, or something.