Skip to content

Instantly share code, notes, and snippets.

@kmcallister
Created May 10, 2012 08:44
Show Gist options
  • Save kmcallister/2651938 to your computer and use it in GitHub Desktop.
Save kmcallister/2651938 to your computer and use it in GitHub Desktop.
testing 'æ'
#define _XOPEN_SOURCE
#include <wchar.h>
#include <locale.h>
#include <stdio.h>
int main() {
setlocale(LC_ALL, "");
printf("%d\n", wcwidth(0xE6));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment