Bug 9161 - Wrong alignment in directory listing containing Russian (non-English) file names
Summary: Wrong alignment in directory listing containing Russian (non-English) file names
Status: RESOLVED DUPLICATE of bug 13599
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_autoindex (show other bugs)
Version: 2.0.36
Hardware: PC other
: P3 minor (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://24.163.51.83/test/
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-16 15:36 UTC by Georgy Pruss
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Pruss 2002-05-16 15:36:30 UTC
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!
Comment 1 Joshua Slive 2002-10-17 02:05:04 UTC

*** This bug has been marked as a duplicate of 13599 ***