diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-09 20:09:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-09 20:09:22 -0400 |
| commit | ba6d1b12291398c804f5cdf653265a0322ca4a01 (patch) | |
| tree | 7e8c863817a64ec5ba5b1e457d05581bddf00852 /src/stdlib/paths.c | |
| parent | ca9eabb810af3aca14aad5c8e0266ddc9286dd99 (diff) | |
| parent | d64dcab138a34d5f5105e08f0a840f7cb5a1d159 (diff) | |
Merge branch 'main' into simplified-quotessimplified-quotes
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) { |
