mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-14 03:58:18 +00:00
cd3b0ae855
See UTS#39 "Unicode Security Mechanisms": http://www.unicode.org/reports/tr39/ This means that characters with accents or other things around them are now considered the confusable with the base character. Fixes #557. Fixes #575.
14 lines
313 B
C++
14 lines
313 B
C++
#include <base/system.h>
|
|
|
|
int main(int argc, const char **argv) // ignore_convention
|
|
{
|
|
dbg_logger_stdout();
|
|
if(argc < 1 + 2)
|
|
{
|
|
dbg_msg("usage", "%s STR1 STR2", argv[0] ? argv[0] : "confusables");
|
|
return -1;
|
|
}
|
|
dbg_msg("conf", "not_confusable=%d", str_utf8_comp_confusable(argv[1], argv[2]));
|
|
return 0;
|
|
}
|