Advertisement
Guest User

Untitled

a guest
May 27th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. /* utf-8.c */
  2. #include <stdio.h>
  3. #include <wchar.h>
  4.  
  5. int main(void)
  6. {
  7.     wprintf(L"%lc\n", (wchar_t)0x20ac);
  8.  
  9.     return 0;
  10. }
  11.  
  12.  
  13. /*
  14.  
  15. susnux ~/c % gcc utf-8.c
  16. susnux ~/c % ./a.out
  17. EUR
  18. susnux ~/c % musl-gcc utf-8.c
  19. susnux ~/c % ./a.out
  20.  
  21. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement