4 ms·
How can I check my own source code for these unicode glyphs with (recursive-)grep?
by lom 5y ago
How can I check my own source code for these unicode glyphs with (recursive-)grep?
- deleted 5y ago[deleted]
- sbierwagen 5y agoIf your source code is ascii-only you can just strip out any multi-byte character.
- jwilk 5y agoFor BiDi attacks, assuming a shell that understands $''-strings (such as bash or zsh) and that the locale encoding matches the source encoding, this should work: grep -r $'[\u061C\u200E\u200F\u202A\u202B\u202C\u202D\u202E\u2066\u2067\u2068\u2069]' /path/to/source
- z29LiTp5qUC30n 5y agoJust use sin https://github.com/oriansj/stage0/blob/master/High_level_prototypes/sin.c https://github.com/oriansj/stage0/blob/master/High_level_pro... It'll dehex any non-humanly used ASCII characters