From b04d4720ce021c75610e5b8d711bec4b90eeab9f Mon Sep 17 00:00:00 2001 From: Shin-ichi TOYAMA Date: Fri, 27 Jun 2008 02:35:26 +0000 Subject: [PATCH] Some debug messages were disabled for old environment which don't have fwprintf(), such as redhat-6.x. --- src/im.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/im.c b/src/im.c index c528ff018..477f93842 100644 --- a/src/im.c +++ b/src/im.c @@ -572,9 +572,11 @@ static int charmap_load(CHARMAP* cm, const char* path) size_t i = 0; #ifndef __BEOS__ +#if defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >=2 || __GLIBC__ > 2 || __APPLE__ fwprintf(stderr, L"Unable to add sequence '%ls', unicode ", buf); for(i = 0; i < wcslen(unicode); i++) fwprintf(stderr, L"%04X ", (int)unicode[i]); fwprintf(stderr, L"in section %d\n", section); +#endif #endif error_code = 1;