diff options
Diffstat (limited to 'lib/std/process.zig')
| -rw-r--r-- | lib/std/process.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig index e9de2cf517..7d1f817337 100644 --- a/lib/std/process.zig +++ b/lib/std/process.zig @@ -442,10 +442,7 @@ pub fn parseEnvVarInt(comptime key: []const u8, comptime I: type, base: u8) Pars if (native_os == .windows) { const key_w = comptime std.unicode.utf8ToUtf16LeStringLiteral(key); const text = getenvW(key_w) orelse return error.EnvironmentVariableNotFound; - // For this implementation perhaps std.fmt.parseInt can be expanded to be generic across - // []u8 and []u16 like how many std.mem functions work. - _ = text; - @compileError("TODO implement this"); + return std.fmt.parseIntWithGenericCharacter(I, u16, text, base); } else if (native_os == .wasi and !builtin.link_libc) { @compileError("parseEnvVarInt is not supported for WASI without libc"); } else { |
