Created
September 3, 2013 08:52
-
-
Save fourdollars/6421318 to your computer and use it in GitHub Desktop.
A simple program to print 'Hello World' in Chinese.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <glib.h> | |
#include <locale.h> | |
// gcc -Wall -Werror -g hello.c `pkg-config --cflags --libs glib-2.0` -o hello | |
int main(int argc, char* argv[]) | |
{ | |
setlocale(LC_ALL, "en_US.utf8"); | |
g_print ("哈囉世界\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment