Bug #1927
closedmod_dirlisting doesn't show japanese,chinese language
Description
Hello,
As title said, I have set utf-8 as dir-listing.encoding = "utf-8"
Thanks.
Files
Updated by icy about 16 years ago
- Status changed from New to Invalid
I just tested it with "??????" and utf-8. Worked fine for me.
Reopen the ticket if you have a way to reproduce the behaviour you mentioned.
Hmpf, sorry redmine seems to have a bug with non-ascii text.
Updated by darjana about 16 years ago
I have a screenshot . Using lighttpd LightTPD/1.4.21-1 (Win32). I have tested on 2 machine. One on windows xp sp2 and another is windows 2003 enterprise edition sp2. Both shows same result. Those japanese characters are not visible on dir listing.
Updated by icy about 16 years ago
Seems like a bug that is only present on windows. Maybe the cygwin wrapper can't handle those?
It is not a bug in lighty though as I have tested it with linux and also asked moo (who is chinese) to test and it worked for both of us.
Updated by peto about 16 years ago
Windows handles Unicode and other encodings completely differently than Unix, and it's up to Cygwin to translate this. Googling doesn't show much information, other than this patch for an old version:
http://www.okisoft.co.jp/esc/utf8-cygwin/
http://www.mail-archive.com/cygwin-patches@cygwin.com/msg03702.html
This is almost certainly the correct thing to do--it's a clean, centralized approach, and there's no avoiding the performance hit for the UCS16<->UTF-8 conversions. Some Cygwin guy rejected it out of hand, and as far as I can see they've never implemented anything else. A year and a half later Cygwin apparently still has no support for internationalization, when the rest of the world made that leap years ago. Sometimes, open source is very embarrassing.
So, if you want multilingual support in Windows, it looks like the best you can do is to dig out that old version of Cygwin and apply that patch. Or, try to apply it to the current version, which may not be too hard, since the bulk is self-contained.
Updated by icy about 16 years ago
Thanks for the more detailed information peto!
I searched for related stuff too but didn't find the stuff you found. Well, to be honest I only search for cygwin + readdir bugs :)
Thanks again, it's really appretiated.
Updated by darjana over 15 years ago
- Status changed from Invalid to Reopened
- Assignee set to icy
- Target version set to 1.4.23
- % Done changed from 0 to 100
Thanks a ton peto. Finally managed to read the chinese characters filename. Using this to replace the dll : http://www.okisoft.co.jp/esc/utf8-cygwin/cygwin1-dll-20-11-18.tar.bz2
Thanks alot.
Updated by stbuehler over 15 years ago
- Status changed from Reopened to Invalid
- Assignee deleted (
icy) - Target version deleted (
1.4.23) - % Done changed from 100 to 0
Also available in: Atom