Skip to content

Commit

Permalink
Handle utf8 file names
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jan 20, 2025
1 parent a98b85e commit 6cab0d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rapidcsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,11 @@ namespace rapidcsv
{
std::ifstream stream;
stream.exceptions(std::ifstream::failbit | std::ifstream::badbit);
#ifdef RAPIDCSV_HAS_CXX17
stream.open(std::filesystem::u8path(mPath), std::ios::binary);
#else
stream.open(mPath, std::ios::binary);
#endif
ReadCsv(stream);
}

Expand Down

0 comments on commit 6cab0d7

Please sign in to comment.