Every time I get a config update I have to go through it and set AddDefaultCharset UTF-8. It might be a good idea to set this automatically by looking for the "unicode" USE flag. Just a suggestion. Reproducible: Always Steps to Reproduce: 1. Upgrade apache 2. Look at /etc/apache2/httpd.conf 3. Pull hair out (again) Actual Results: AddDefaultCharset ISO-8859-1 Expected Results: AddDefaultCharset UTF-8 Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://gentoo.blueyonder.co.uk/mirrors/gentoo ftp://pandemonium.tiscali.de/pub/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac abook acpi alsa apache2 apm artworkextra avi bash-completion berkdb bzlib calendar cdr cjk cli crypt cups curl divx4linux doc dv dvd dvdread eds emboss encode esd exif fam fame fastcgi fbcon fla flac foomaticdb fortran ftp gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 guile hal imap imlib ipv6 jabber jack java jpeg kde ldap libg++ libwww mad mikmod mime mmx motif mozilla mp3 mpeg msn mysql ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre pdflib perl php png ppds python qt quicktime readline sdl spell ssl subtitles svg svga tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts unicode usb videos vorbis win32codecs wmf wxwindows xml2 xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Personally, I'd prefer to have this directive commented out by default, but that's just me. ;p
The comments in the config file would suggest that's a security vulnerability. :E
use flags should never affect configuartion data
Lines 39 through 42 of sys-apps/baselayout-1.11.13-r1 ebuild # Setup unicode defaults for silly unicode users if use unicode ; then sed -i -e '/^UNICODE=/s:no:yes:' etc/rc.conf fi Apparently, they do! It seems you've made up your mind already, but I'm hoping you'll reconsider. Cheers
Upstream in 2.1/2.2 has removed this directive by default.
Well apache did not remove it, they set it to off by default: http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset Another issue: This directive seems not to work with: apache 2.2.6-r1