Skip to content

Commit 91fc392

Browse files
Sainanwell-in-that-case
authored andcommitted
Note that IO functions use UTF-8 paths
1 parent 510761b commit 91fc392

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/Runtime Environment/IO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
This page documents the changes & additions to the `io` library in Pluto, which is built on top of Lua 5.4's.
22

3+
To improve cross-platform consistency, all IO functions assume UTF-8 encoding for paths.
4+
35
---
46
### `io.rename`
57
A variant of Lua's `os.rename` that raises an error on failure and instead has no return values.

docs/Runtime Environment/OS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ os.sleep(1000) -- Pause this thread for 1000ms.
2121
All of these return their respective times since implementation-specific epoch.
2222
### `os.unixseconds`
2323
Returns seconds since UNIX epoch.
24+
25+
26+
---
27+
### `os.rename`, `os.remove`
28+
Although we'd rather these functions be in the IO library, these Lua variants are retained, but modified to assume UTF-8 path encoding for the same cross-platform consistency the IO library has.
29+

0 commit comments

Comments
 (0)