Re: Bug#270418: apache: Apache initscript ignores system locale

2004-09-08 Thread Fabio Massimo Di Nitto
On Tue, 7 Sep 2004, Ian Eure wrote:

 Is there some definitive resource which documents these effects? I'd like to
 know what I run the risk of breaking by forcing Apache to use my locale.

Check the BTS for archived apache bugs. some of them were reporting
problems when LANG != C. I am not sure to recall all the details, but one
of the problem was the sequence in which a config directory is scanned,
breaking user configuration load sequences.

Remember that /etc/init./apache is a config file that you can modify and
it will not be overwritten across uploads, until you say so.

Fabio

-- 
user fajita: step one
fajita Whatever the problem, step one is always to look in the error log.
user fajita: step two
fajita When in danger or in doubt, step two is to scream and shout.




Bug#270418: apache: Apache initscript ignores system locale

2004-09-07 Thread Ian Eure
Package: apache
Version: 1.3.31-5
Severity: important
Tags: l10n

From /etc/init.d/apache:

-- snip --
ENV=env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin
...
APACHECTL=$ENV $APACHECTL
-- snip --

This renders PHP unable to display UTF-8 text with gettext; all
non-ASCII
characters are changed to question marks.

LANG should be set from locales/default_environment_locale in debconf.



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages apache depends on:
ii  apache-common   1.3.31-5 Support files for all Apache 
webse
ii  debconf 1.4.30.2 Debian configuration management 
sy
ii  dpkg1.10.23  Package maintenance system for 
Deb
ii  libc6   2.3.2.ds1-13 GNU C Library: Shared libraries 
an
ii  libdb4.24.2.52-17Berkeley v4.2 Database Libraries 
[
ii  libexpat1   1.95.6-8 XML parsing C library - runtime 
li
ii  libmagic1   4.09-1   File type determination library 
us
ii  logrotate   3.7-2Log rotation utility
ii  mime-support3.28-1   MIME files 'mime.types'  
'mailcap
ii  perl5.8.4-2  Larry Wall's Practical Extraction 

-- debconf information:
* apache/enable-suexec: false
  apache/server-name: localhost
  apache/document-root: /var/www
  apache/server-port: 80
  apache/init: true
  apache/server-admin: [EMAIL PROTECTED]




Re: Bug#270418: apache: Apache initscript ignores system locale

2004-09-07 Thread Fabio Massimo Di Nitto
severity 270418 wishlist
tag 270418 wontfix
stop

On Tue, 7 Sep 2004, Ian Eure wrote:

 Package: apache
 Version: 1.3.31-5
 Severity: important
 Tags: l10n

 From /etc/init.d/apache:

 -- snip --
 ENV=env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin
 ...
 APACHECTL=$ENV $APACHECTL
 -- snip --

 This renders PHP unable to display UTF-8 text with gettext; all
 non-ASCII
 characters are changed to question marks.

 LANG should be set from locales/default_environment_locale in debconf.

Setting LANG to anything != C breaks at least another 200 things, like
user configurations.

Fabio

-- 
user fajita: step one
fajita Whatever the problem, step one is always to look in the error log.
user fajita: step two
fajita When in danger or in doubt, step two is to scream and shout.




Processed: Re: Bug#270418: apache: Apache initscript ignores system locale

2004-09-07 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 severity 270418 wishlist
Bug#270418: apache: Apache initscript ignores system locale
Severity set to `wishlist'.

 tag 270418 wontfix
Bug#270418: apache: Apache initscript ignores system locale
Tags were: l10n
Tags added: wontfix

 stop
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)




Bug#270418: apache: Apache initscript ignores system locale

2004-09-07 Thread Adam Conrad
Ian Eure wrote:
 
 This renders PHP unable to display UTF-8 text with gettext; all
non-ASCII
 characters are changed to question marks.

Even if you export the right LANG in PHP with putenv()?

... Adam





Bug#270418: apache: Apache initscript ignores system locale

2004-09-07 Thread Ian Eure
On Tuesday 07 September 2004 07:06 am, Adam Conrad wrote:
 Ian Eure wrote:
  This renders PHP unable to display UTF-8 text with gettext; all

 non-ASCII

  characters are changed to question marks.

 Even if you export the right LANG in PHP with putenv()?

Yes.




Bug#270418: apache: Apache initscript ignores system locale

2004-09-07 Thread Ian Eure
On Tuesday 07 September 2004 03:03 am, Fabio Massimo Di Nitto wrote:
 severity 270418 wishlist
 tag 270418 wontfix
 stop

 On Tue, 7 Sep 2004, Ian Eure wrote:
  Package: apache
  Version: 1.3.31-5
  Severity: important
  Tags: l10n
 
  From /etc/init.d/apache:
 
  -- snip --
  ENV=env -i LANG=C PATH=/bin:/usr/bin:/usr/local/bin
  ...
  APACHECTL=$ENV $APACHECTL
  -- snip --
 
  This renders PHP unable to display UTF-8 text with gettext; all
  non-ASCII
  characters are changed to question marks.
 
  LANG should be set from locales/default_environment_locale in debconf.

 Setting LANG to anything != C breaks at least another 200 things, like
 user configurations.

Is there some definitive resource which documents these effects? I'd like to 
know what I run the risk of breaking by forcing Apache to use my locale.