Skip to content

Instantly share code, notes, and snippets.

@ridiculousfish
Created June 23, 2018 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ridiculousfish/cbd01edd3cb4bc5a1678f1d26cb15ff6 to your computer and use it in GitHub Desktop.
Save ridiculousfish/cbd01edd3cb4bc5a1678f1d26cb15ff6 to your computer and use it in GitHub Desktop.
wcwidth of variation selector
#include <wchar.h>
#include <stdio.h>
#include <locale.h>
int main(void) {
char *loc = setlocale(LC_ALL, "");
printf("%s %d\n", loc, wcwidth(0xFE0F));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment