[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suggestion: handle utf-8 filename in windows
- From: Russell Haley <russ.haley@...>
- Date: Wed, 25 Oct 2017 08:46:49 -0700
On Wed, Oct 25, 2017 at 8:00 AM, 云风 Cloud Wu <cloudwu@gmail.com> wrote:
> lua use fopen() in its base lib now, there are too troubles to support
> windows file system because of it :(
>
> I suggest lua use unicode version api of windows in future version, such as
> fopen -> _wfopen , and call MultiByteToWideChar to convert utf-8 filename to
> wchar_t first.
>
> I think let following apis support utf-8 filename in windows would be
> better:
> loadfile
> dofile
> require
> io.open
> os.remove
> os.rename
> os.execute
> os.getenv
Perhaps a new make target for optional compilation?
Russ