summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2002-12-17 06:01:26 +0000
committerMatt Wilson <msw@redhat.com>2002-12-17 06:01:26 +0000
commitbaad57ae8cee2654009e6c95d7807fe5768b28ed (patch)
treeca579d5bd7b36fff1f0d93665292a401f2a8a96b
parent7f0c64a956b6dbbe53e4860ea0b2491ecedee4a1 (diff)
downloadanaconda-baad57ae8cee2654009e6c95d7807fe5768b28ed.tar.gz
anaconda-baad57ae8cee2654009e6c95d7807fe5768b28ed.tar.xz
anaconda-baad57ae8cee2654009e6c95d7807fe5768b28ed.zip
assume that if we're already on a pty we can handle unicode
-rw-r--r--loader2/lang.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/loader2/lang.c b/loader2/lang.c
index 4b5d9879e..b7c3eabc4 100644
--- a/loader2/lang.c
+++ b/loader2/lang.c
@@ -222,6 +222,12 @@ extern int bterm_main(int argc, char **argv);
int startBterm(int flags) {
char *args[4] = { "bterm", "-s", "-f", NULL };
int rc;
+ struct stat sb;
+
+ /* assume that if we're already on a pty we can handle unicode */
+ fstat(0, &sb);
+ if (major(sb.st_rdev) == 3 || major(sb.st_rdev) == 136)
+ return 0;
if (FL_TESTING(flags))
args[3] = "font.bgf.gz";