We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72fede0 commit c24dfadCopy full SHA for c24dfad
tools/make.js
@@ -80,12 +80,8 @@ function fs_readfile(p) {
80
}
81
82
function fs_writefile(p, data) {
83
- let u8 = new Uint8Array(data.length);
84
- for (let i = 0; i < data.length; ++i) {
85
- u8[i] = data.charCodeAt(i);
86
- }
87
let f = std.open(p, "w");
88
- f.write(u8.buffer, 0, u8.length);
+ f.puts(data); // utf8
89
f.close();
90
91
0 commit comments