From 120e8a0e4b1648c6a20fa8d67b34e02059890928 Mon Sep 17 00:00:00 2001 From: Hans Petter Bieker Date: Thu, 6 Jul 2000 16:48:13 +0000 Subject: [PATCH] * -DQT_NO_ASCII_CAST * using local8Bit() when printing i18n()ed messages to stderr. svn path=/trunk/kdebase/kwin/; revision=55634 --- Makefile.am | 2 ++ main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 462e88a7b7..eb0d51e36f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,6 @@ +AM_CPPFLAGS = -DQT_NO_ASCII_CAST + INCLUDES = $(all_includes) SUBDIRS = . pics clients diff --git a/main.cpp b/main.cpp index ff402cc047..d73af60c7d 100644 --- a/main.cpp +++ b/main.cpp @@ -59,7 +59,7 @@ int x11ErrorHandler(Display *d, XErrorEvent *e){ || e->request_code == X_GrabKey ) && (e->error_code == BadAccess)) { - fprintf(stderr, i18n("kwin: it looks like there's already a window manager running. kwin not started\n")); + fprintf(stderr, i18n("kwin: it looks like there's already a window manager running. kwin not started").local8Bit()); exit(1); } @@ -73,7 +73,7 @@ int x11ErrorHandler(Display *d, XErrorEvent *e){ fprintf(stderr, "kwin: %s(0x%lx): %s\n", req, e->resourceid, msg); if (initting) { - fprintf(stderr, i18n("kwin: failure during initialisation; aborting\n")); + fprintf(stderr, i18n("kwin: failure during initialisation; aborting").local8Bit()); exit(1); } return 0;