Skip to content

Instantly share code, notes, and snippets.

@winocm
Last active May 24, 2017 11:21
Show Gist options
  • Select an option

  • Save winocm/e3eb9c9b061c7414441c45a4938a0c57 to your computer and use it in GitHub Desktop.

Select an option

Save winocm/e3eb9c9b061c7414441c45a4938a0c57 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdarg.h>
static void d̰̞ͅi̜̣̣̤̪s͎̬̙p̫̞͕̹̣͉̙a̘̞̼͕̲ͅt̰̳c͚̟̳͎̻̘ͅh̻͠(const char* f̢̬͉̥̮͈̦̤m̨t̴̝̳, ...)
{
va_list a̢͍͉̪͝p̨̙͎͙̳;
va_start(a̢͍͉̪͝p̨̙͎͙̳, f̢̬͉̥̮͈̦̤m̨t̴̝̳);
vfprintf(stderr, f̢̬͉̥̮͈̦̤m̨t̴̝̳, a̢͍͉̪͝p̨̙͎͙̳);
va_end(a̢͍͉̪͝p̨̙͎͙̳);
}
int main(int argc, const char* argv[])
{
const char* h̟͎̪̮e̗͔̟_͎̩̤͖͕̞c̢̤̙̙̱̗̰o̞͓̹͞m̦̟̤̖͙͕e̴̩̟̯̦͉̭s̫̻͠ = "t̥͓̙h̪͔̼͔͍͎͉e ͉̼̖̹ẹ̣̳̮̤̯͕͞n̯̬̰̝̱͕d̝̳ ̨t҉̺̹̫̘̳i̦̤̦̪͇̤͝m̜͚̪̰̜̳̩͝e͏͉̣̫̠̦ͅ ̣̜ͅi̫̱͉͔̺̣͚͝s͚͈͎ ͕̼̼̰ͅn̨i͉̝̩͠g̵̟͔̩ͅh͍̼";
d̰̞ͅi̜̣̣̤̪s͎̬̙p̫̞͕̹̣͉̙a̘̞̼͕̲ͅt̰̳c͚̟̳͎̻̘ͅh̻͠("%s", h̟͎̪̮e̗͔̟_͎̩̤͖͕̞c̢̤̙̙̱̗̰o̞͓̹͞m̦̟̤̖͙͕e̴̩̟̯̦͉̭s̫̻͠);
return 0;
}
@winocm
Copy link
Copy Markdown
Author

winocm commented May 24, 2017

winocms-MacBook-Pro:tmp winocm$ curl -O https://gist.githubusercontent.com/winocm/e3eb9c9b061c7414441c45a4938a0c57/raw/d05ab3137df39c8125b5fe286ec93d087b99cf4c/unicode_was_a_bad_idea.cc
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   954  100   954    0     0   5618      0 --:--:-- --:--:-- --:--:--  5644
winocms-MacBook-Pro:tmp winocm$ clang++ unicode_was_a_bad_idea.cc -o what -std=c++11
winocms-MacBook-Pro:tmp winocm$ ./what
t̥͓̙h̪͔̼͔͍͎͉e ͉̼̖̹ẹ̣̳̮̤̯͕͞n̯̬̰̝̱͕d̝̳ ̨t҉̺̹̫̘̳i̦̤̦̪͇̤͝m̜͚̪̰̜̳̩͝e͏͉̣̫̠̦ͅ ̣̜ͅi̫̱͉͔̺̣͚͝s͚͈͎ ͕̼̼̰ͅn̨i͉̝̩͠g̵̟͔̩ͅh͍̼winocms-MacBook-Pro:tmp winocm$ 

@miaubiz
Copy link
Copy Markdown

miaubiz commented May 24, 2017

@winocm
Copy link
Copy Markdown
Author

winocm commented May 24, 2017

sudo

@miaubiz
Copy link
Copy Markdown

miaubiz commented May 24, 2017

for added danger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment