diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-09 20:10:39 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-09 20:10:39 -0400 |
| commit | 25d85a501d0e5fb8bd9a76376e3868713dd56fdb (patch) | |
| tree | 9ba81bb51b41d19284ba02ec1197ae81f31b263c /src/stdlib/paths.c | |
| parent | fb216e955f04a803f11953be27e76bd4d2c9e76d (diff) | |
| parent | d64dcab138a34d5f5105e08f0a840f7cb5a1d159 (diff) | |
Merge branch 'main' into table-colonstable-colons
Diffstat (limited to 'src/stdlib/paths.c')
| -rw-r--r-- | src/stdlib/paths.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index 3de329a9..385f3bdf 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -290,7 +290,7 @@ static void _write(Path_t path, List_t bytes, int mode, int permissions) { public void Path$write(Path_t path, Text_t text, int permissions) { - List_t bytes = Text$utf8_bytes(text); + List_t bytes = Text$utf8(text); _write(path, bytes, O_WRONLY | O_CREAT | O_TRUNC, permissions); } @@ -301,7 +301,7 @@ void Path$write_bytes(Path_t path, List_t bytes, int permissions) { public void Path$append(Path_t path, Text_t text, int permissions) { - List_t bytes = Text$utf8_bytes(text); + List_t bytes = Text$utf8(text); _write(path, bytes, O_WRONLY | O_APPEND | O_CREAT, permissions); } @@ -367,7 +367,7 @@ public OptionalText_t Path$read(Path_t path) { List_t bytes = Path$read_bytes(path, NONE_INT); if (bytes.length < 0) return NONE_TEXT; - return Text$from_bytes(bytes); + return Text$from_utf8(bytes); } public @@ -537,7 +537,7 @@ Path_t Path$write_unique_bytes(Path_t path, List_t bytes) { } public -Path_t Path$write_unique(Path_t path, Text_t text) { return Path$write_unique_bytes(path, Text$utf8_bytes(text)); } +Path_t Path$write_unique(Path_t path, Text_t text) { return Path$write_unique_bytes(path, Text$utf8(text)); } public Path_t Path$parent(Path_t path) { |
