Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107085 - Add unicode USE to apache2 ebuilds for AddDefaultCharset directive
Summary: Add unicode USE to apache2 ebuilds for AddDefaultCharset directive
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 05:59 UTC by Alex Jones
Modified: 2007-09-26 21:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Jones 2005-09-24 05:59:07 UTC
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
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-09-24 06:04:48 UTC
Personally, I'd prefer to have this directive commented out by default, but
that's  just me. ;p
Comment 2 Alex Jones 2005-09-24 07:17:10 UTC
The comments in the config file would suggest that's a security vulnerability. :E
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-09-24 07:45:46 UTC
use flags should never affect configuartion data
Comment 4 Alex Jones 2005-09-24 09:08:59 UTC
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
Comment 5 Paul Querna 2005-09-24 09:55:31 UTC
Upstream in 2.1/2.2 has removed this directive by default.
Comment 6 cilly 2007-09-26 21:46:15 UTC
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