From 1c5ea92404abfb87b96104c79511d331a4a54137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 17 Feb 2005 10:39:40 +0000 Subject: [PATCH] don't mangle UTF-8 chars for __BEOS__, from the GG patch git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11398 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/coreutils-5.0/src/ls.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/bin/coreutils-5.0/src/ls.c b/src/apps/bin/coreutils-5.0/src/ls.c index fb97314d60..38ed708ec1 100644 --- a/src/apps/bin/coreutils-5.0/src/ls.c +++ b/src/apps/bin/coreutils-5.0/src/ls.c @@ -624,6 +624,11 @@ static struct ignore_pattern *ignore_patterns; want to mess up the terminal if control chars get sent to it, and some quoting methods pass through control chars as-is. */ static int qmark_funny_chars; +#ifdef __BEOS__ /* Default to show UTF8 chars in BeOS terminal. */ +#define QMARK_FUNNY_CHARS_TTY 0 +#else +#define QMARK_FUNNY_CHARS_TTY 1 +#endif /* Quoting options for file and dir name output. */ @@ -1243,7 +1248,7 @@ decode_switches (int argc, char **argv) /* Record whether there is an option specifying sort type. */ int sort_type_specified = 0; - qmark_funny_chars = 0; + qmark_funny_chars = QMARK_FUNNY_CHARS_TTY; /* initialize all switches to default settings */