mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
Update README.md
This commit is contained in:
parent
6d173c50a9
commit
dcf28643f0
@ -266,7 +266,7 @@ namespace fs = ghc::filesystem;
|
|||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
fs::u8arguments u8guard(argc, argv);
|
fs::u8arguments u8guard(argc, argv);
|
||||||
if(u8guard.valid()) {
|
if(!u8guard.valid()) {
|
||||||
std::cerr << "Bad encoding, needs UTF-8." << std::endl;
|
std::cerr << "Bad encoding, needs UTF-8." << std::endl;
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user