From 136d8d9e5c9a2a0414e4934cc928bca23bfe944b Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 1 Oct 2023 17:44:48 +0200 Subject: Add w3m-cgi-compat option --- src/loader/file.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/loader/file.nim') diff --git a/src/loader/file.nim b/src/loader/file.nim index 5d552e40..cdb7afc2 100644 --- a/src/loader/file.nim +++ b/src/loader/file.nim @@ -108,11 +108,7 @@ proc loadFile(handle: LoaderHandle, istream: Stream) = if n < bufferSize: break -proc loadFilePath*(handle: LoaderHandle, url: URL) = - when defined(windows) or defined(OS2) or defined(DOS): - let path = url.path.serialize_unicode_dos() - else: - let path = url.path.serialize_unicode() +proc loadFilePath*(handle: LoaderHandle, url: URL, path: string) = let istream = newFileStream(path, fmRead) if istream == nil: if dirExists(path): -- cgit 1.4.1-2-gfad0