-
-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
io.open 不支持 r+ #5717
Comments
Title: io.open does not support r+ Xmake versionxmake v2.9.5+HEAD.d30de52e9 Operating system version and architecturewindows10 22H2 Describe the problemio.open does not support r+ Unable to modify file Expected resultsProject configuration
Additional information and error logs
|
不支持 |
会打算支持吗? 不打算的话,那能否暴露 lua 原生 os ? |
直接用
不考虑,我全部重写的,原生 io 连 unicode 都不支持 |
我是要修改二进制文件的,所以无关编码 不行,文件被截断。我尝试过了
|
Will you plan to support it? If not, can the native OS of Lua be exposed? |
Not supported |
Can't you just use
Regardless, I rewrote everything. Native io doesn’t even support unicode. |
我知道,但是我不可能为了支持你这一个需求,重新暴露 lua 原生 io ,废弃掉当前的实现,让其他 99% 的读写,都支持不了 unicode |
那目前不支持,只能等后面有空了再看看了。 |
I know, but in order to support your demand, I may re-expose Lua's native io, abandon the current implementation, and make the other 99% of reading and writing unable to support unicode |
That’s not supported at the moment, so we’ll have to wait and see when we have time later. |
试下这个 patch #5724 不过二进制写入要加 |
我咋试? github actions 不是可以下载结果的吗?为啥你这个没有下载列表。 |
xmake update github:xmake-io/xmake#io |
这不是有的么 https://github.com/xmake-io/xmake/actions/runs/11366002478?pr=5724 |
咋还报 哦哦,在 windows 里,晓得了。我在 msys2 里找没找到。 |
How should I try? Isn't it possible to download the results from github actions? Why don't you have a download list? |
还是不行,存在一个有趣的错误 使用 r+b 模式下,先读后写会导致写无效,无事发生。 |
Still not working, there is an interesting bug In r+b mode, reading first and then writing will cause the writing to be invalid and nothing will happen. |
Xmake 版本
xmake v2.9.5+HEAD.d30de52e9
操作系统版本和架构
windows10 22H2
描述问题
io.open 不支持 r+
r+b 不报错,但是不会修改文件
期待的结果
工程配置
附加信息和错误日志
The text was updated successfully, but these errors were encountered: