From: Bo Peng Date: Tue, 26 Jun 2007 16:28:27 +0000 (+0000) Subject: scons part of bug 3527 X-Git-Tag: 1.6.10~9276 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6c5ff3bf46f31e61fadf9507d143dfa05f756420;hp=529723a0c4c0f15fc6db2ab26b52155446166150;p=lyx.git scons part of bug 3527 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18895 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/development/scons/SConstruct b/development/scons/SConstruct index c35e110094..54ed25e8a9 100644 --- a/development/scons/SConstruct +++ b/development/scons/SConstruct @@ -814,7 +814,17 @@ utils.createConfigFile(conf, # define WANT_GETFILEATTRIBUTESEX_WRAPPER 1 #endif -#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 +/* + * the FreeBSD libc uses UCS4, but libstdc++ has no proper wchar_t + * support compiled in: + * http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#3_9 + * And we are not interested at all what libc + * does: What we need is a 32bit wide wchar_t, and a libstdc++ that + * has the needed wchar_t support and uses UCS4. Whether it + * implements this with the help of libc, or whether it has own code + * does not matter for us, because we don't use libc directly (Georg) +*/ +#if defined(HAVE_WCHAR_T) && SIZEOF_WCHAR_T == 4 && ! defined(__FREEBSD__) # define LIBC_WCTYPE_USES_UCS4 #endif