Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#255 closed defect (worksforme)

HttpAutoindexModule fails to align collumns correctly when special characters are used

Reported by: Brendan Tildesley Owned by: somebody
Priority: trivial Milestone:
Component: nginx-module Version: 1.2.x
Keywords: HttpAutoindexModule align directory listing Cc:
uname -a: Linux ui 3.5.4-1-LIBRE #1 SMP PREEMPT Tue Sep 18 18:59:50 UTC 2012 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.2.5
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin/nginx --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --user=http --group=http --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/client-body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-imap --with-imap_ssl_module --with-ipv6 --with-pcre-jit --with-file-aio --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module --add-module=/usr/lib/passenger/ext/nginx

Description

This is copied out of my Iceweasel webbrowser, showing that the Chinese characters seem to cause the module to align the date and file size columns incorrectly. This does not happen with typical ascii characters. The only suggestion I can come up with to fix this would be to use html, or to code something that checks for 2-byte characters (or what ever these are, I don't know) and altering the spacing accordingly...

../
6DuUkOmTfOA.mp4                                    18-Nov-2008 14:44            15204470
The Last Successor – 释放.webm                 10-Oct-2010 13:14            84364332
dto_Smx__oc.webm                                   03-Mar-2011 10:25            13349691
伍佰 & China Blue – 單程車票.webm          13-Sep-2011 16:47           104299131
柯受良 – 大哥 .webm                         27-Feb-2011 07:23            10941634
那英 – 我的幸福刚刚好.webm              07-Nov-2011 03:05            35273674

Change History (2)

comment:1 by Maxim Dounin, 12 years ago

Resolution: worksforme
Status: newclosed

With utf-8 this works fine as long as charset is correctly set in configuration. Other variable-width character encodings are not supported.

in reply to:  1 comment:2 by Brendan Tildesley, 12 years ago

Replying to Maxim Dounin:

With utf-8 this works fine as long as charset is correctly set in configuration. Other variable-width character encodings are not supported.

Thank you, I will look into this.

Note: See TracTickets for help on using tickets.