httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9161] New: - Wrong alignment in directory listing containing Russian (non-English) file names
Date Thu, 16 May 2002 15:36:31 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9161>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9161

Wrong alignment in directory listing containing Russian (non-English) file names

           Summary: Wrong alignment in directory listing containing Russian
                    (non-English) file names
           Product: Apache httpd-2.0
           Version: 2.0.36
          Platform: PC
               URL: http://24.163.51.83/test/
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: mod_autoindex
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: d001120t0330@hotmail.com


When generating a list of a directory which contains file(s) with Russian (non-
English) names, the number of characters in Russian filenames is counted wrong 
(i.e. each letter counted twice). I guess it's because Apache uses UTF-8 for 
Russian names in HREF and plain Ascii for english names. This is an example of 
the listing (note the date and the rest of the line for the first file shifted 
left 7 chars -- tne number of russian letters in the name):

 Parent Directory                             -   
 русский.html     15-May-2002 22:57  1.4K  
 r.html                  15-May-2002 22:57  1.4K  
 r_cp866(dos).html       28-Sep-2001 09:55  1.5K  
 ...

And this is what View Source shows:

...
<img src="/icons/back.gif" alt="[DIR]" /> <a href="/">Parent 
Directory</a>                             -   
<img src="/icons/text.gif" alt="[TXT]" /> <a href="%d1%80%d1%83%d1%81%d1%81%d0%
ba%d0%b8%d0%b9.html">русский.html</a>     15-May-2002 22:57  1.4K  
<img src="/icons/text.gif" alt="[TXT]" /> <a 
href="r.html">r.html</a>                  15-May-2002 22:57  1.4K  
<img src="/icons/text.gif" alt="[TXT]" /> <a href="r_cp866(dos).html">r_cp866
(dos).html</a>       28-Sep-2001 09:55  1.5K  
r_koi8-r.html           19-Jan-2001 11:44  1.5K  
...

Local/Remote computers -- Windows 2K or XP, browser -- IE 6.0, all -- English/US
All Apache options -- by default, as installed, except

DefaultLanguage ru

LanguagePriority ru en da nl et fr de el it ja kr no pl pt pt-br ltz ca es sv tw

# was AddDefaultCharset ISO-8859-1
AddDefaultCharset WINDOWS-1251

Thank you!

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


Mime
View raw message