Merge pull request #19 from kleuter/master

Fixed readme example checking for valid UTF8
This commit is contained in:
gulrak 2019-05-18 19:30:54 +02:00 committed by GitHub
commit 1d4cf99540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}