Skip to content

Commit

Permalink
Merge pull request #19 from kleuter/master
Browse files Browse the repository at this point in the history
Fixed readme example checking for valid UTF8
  • Loading branch information
gulrak authored May 18, 2019
2 parents 082e606 + dcf2864 commit 1d4cf99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ namespace fs = ghc::filesystem;
int main(int argc, char* argv[])
{
fs::u8arguments u8guard(argc, argv);
if(u8guard.valid()) {
if(!u8guard.valid()) {
std::cerr << "Bad encoding, needs UTF-8." << std::endl;
exit(EXIT_FAILURE);
}
Expand Down

0 comments on commit 1d4cf99

Please sign in to comment.