You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/07/30 10:29:21 UTC

DO NOT REPLY [Bug 49675] New: wrong charset for directory indexing

https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

           Summary: wrong charset for directory indexing
           Product: Apache httpd-2
           Version: 2.2.15
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: toralf.foerster@gmx.de


I've mounted an NTFS partition with UTF-8 character set :

/dev/sda2   /mnt/E  ntfs-3g        
auto,user,noatime,uid=<me>,gid=<we>,umask=0022,noexec,locale=de_DE.utf8 

On that partition there's a directory which should be readable via http. The
location is defined within /etc/apache2/vhosts.d/default_vhost.include with an
Alias and a Directory directive.

>From the apache doc :
"The Charset keyword allows you to specify the character set of the generated
page. The default is either ISO-8859-1 or UTF-8, depending on whether the
underlying file system is unicode or not. "

But nevertheless I have to set "IndexOptions Charset=UTF-8" to get a string
like 'Köln' displayed correctly.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
          Component|mod_autoindex               |Documentation

--- Comment #3 from Eric Covener <co...@gmail.com> 2010-07-30 08:50:16 EDT ---
mod_autoindex doesn't do runtime checks on codepages of filesystems, it just
knows if APR was or was not build with the APR_HAS_UNICODE_FS macro defined.  

changing component to Documentation.

I imagine this is almost never set on common unix platforms, where filenames
can be in multiple arbitrary codepages.  OS X is maybe an exception.

wrowe: Can you summarize what windows _builds_ wouldn't set APR_HAS_UNICODE_FS
and I'll take a pass at the autoindex docs?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

Toralf F <to...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Core                        |mod_autoindex

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

--- Comment #4 from William A. Rowe Jr. <wr...@apache.org> 2010-07-30 12:34:49 EDT ---
Win32 filesystem is *always* unicode.  That's an attribute of both the physical
filesystem, and the API.  This and OS/X are the only 'utf-8 always' autoindex
platforms, IIRC.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

--- Comment #6 from William A. Rowe Jr. <wr...@apache.org> 2010-07-30 16:40:35 EDT ---
>> This is worth a feature request

This would begin with a proposed patch to the apr project; patches welcome.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|bugs@httpd.apache.org       |docs@httpd.apache.org

--- Comment #7 from Rich Bowen <rb...@apache.org> 2010-10-29 11:04:56 EDT ---
Moving docs bugs to docs@httpd.a.o ownership.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

--- Comment #2 from Toralf Förster <to...@gmx.de> 2010-07-30 08:25:39 EDT ---
(In reply to comment #1)
> By default the charset is set to ISO-8859-1.

The default - from the apache2 doc - is given by the file system :
"depending on whether the underlying file system is unicode or not. "

And the file system is mounted with UTF-8 - therefore I'd expect apache 2 to
tolow its own documentation.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

--- Comment #5 from Toralf Förster <to...@gmx.de> 2010-07-30 14:50:00 EDT ---
(In reply to comment #3)
> mod_autoindex doesn't do runtime checks on codepages of filesystems
This is worth a feature request, IMHO.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 49675] wrong charset for directory indexing

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49675

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2010-07-30 07:24:57 EDT ---
So what is the issue? By default the charset is set to ISO-8859-1. If you have
a different charset you need to set it like you did. AFAIU this works.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org