ddnet/src/tools/unicode_confusables.cpp
Robert Müller f20443b694 fix command line arguments with unicode on windows
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2021-12-06 19:48:25 +01:00

16 lines
376 B
C++

#include <base/system.h>
int main(int argc, const char **argv) // ignore_convention
{
cmdline_fix(&argc, &argv);
dbg_logger_stdout();
if(argc < 1 + 2)
{
dbg_msg("usage", "%s STR1 STR2", argv[0] ? argv[0] : "unicode_confusables");
return -1;
}
dbg_msg("conf", "not_confusable=%d", str_utf8_comp_confusable(argv[1], argv[2]));
cmdline_free(argc, argv);
return 0;
}