summaryrefslogtreecommitdiff
path: root/examples/viewer-main.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-08-01 14:50:34 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-08-01 14:50:34 +0000
commita02f74723e0932ed303cf421c31e2fbd96a59623 (patch)
treeacf3978b5b4d38e9a30b7179980e37ddf8a1af12 /examples/viewer-main.c
parent58bb013bc704f5c907ed8a2838eb682abf9e7310 (diff)
downloadpango-a02f74723e0932ed303cf421c31e2fbd96a59623.tar.gz
Don't ignore all trailing whitespace in input text. Only chop one newline.
2006-08-01 Behdad Esfahbod <behdad@gnome.org> * examples/renderdemo.c (parse_options): Don't ignore all trailing whitespace in input text. Only chop one newline. * examples/viewer-main.c (main): setlocale(LC_ALL, "") to get GOption work for UTF-8 text on the command line.
Diffstat (limited to 'examples/viewer-main.c')
-rw-r--r--examples/viewer-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/viewer-main.c b/examples/viewer-main.c
index cba50564..9dc7cc88 100644
--- a/examples/viewer-main.c
+++ b/examples/viewer-main.c
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <locale.h>
#include <glib.h>
#include <glib/gstdio.h>
@@ -47,6 +48,7 @@ main (int argc,
gpointer surface;
g_type_init();
+ setlocale (LC_ALL, "");
parse_options (argc, argv);
view = opt_viewer;