Skip to content

Commit 73c542e

Browse files
committed
Fix error reading cookie file on windows when path contains UTF-8
1 parent fe04483 commit 73c542e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rpc/request.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ bool GetMainchainAuthCookie(std::string *cookie_out)
151151
std::string cookie;
152152

153153
std::filesystem::path filepath = GetMainchainAuthCookieFile();
154-
file.open(filepath.string().c_str());
154+
file.open(filepath);
155155
if (!file.is_open())
156156
return false;
157157
std::getline(file, cookie);

0 commit comments

Comments
 (0)