1 Default to UTF-8 - may be overridden by command line flags.
3 diff -u -r ../psmisc-22.21/src/pstree.c ./src/pstree.c
4 --- ../psmisc-22.21/src/pstree.c 2014-02-02 06:59:07.000000000 +0100
5 +++ ./src/pstree.c 2014-06-30 18:35:12.064021186 +0200
10 -#include <langinfo.h>
12 +# include <langinfo.h>
15 #include <sys/types.h>
17 @@ -1087,6 +1089,10 @@
18 * command-line options, if given.
22 + /* Droids love unicode */
25 if (isatty(1) && !strcmp(nl_langinfo(CODESET), "UTF-8")) {
26 /* Use UTF-8 symbols if the locale's character set is UTF-8. */
29 /* Otherwise, fall back to ASCII. */