Project

General

Profile

Actions

Bug #1927

closed

mod_dirlisting doesn't show japanese,chinese language

Added by darjana about 16 years ago. Updated over 15 years ago.

Status:
Invalid
Priority:
Normal
Category:
mod_dirlisting
Target version:
-
ASK QUESTIONS IN Forums:

Description

Hello,

As title said, I have set utf-8 as dir-listing.encoding = "utf-8"

Thanks.


Files

missing.JPG (74.5 KB) missing.JPG darjana, 2009-03-08 19:12
Actions #1

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.

Actions #2

Updated by darjana about 16 years ago

!!

Actions #3

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.

Actions #4

Updated by darjana about 16 years ago

  • Status changed from Invalid to Reopened
Actions #5

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.

Actions #6

Updated by icy about 16 years ago

  • Status changed from Reopened to Invalid
Actions #7

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.

Actions #8

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.

Actions #9

Updated by peto about 16 years ago

(Two and a half years.)

Actions #10

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.

Actions #11

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
Actions

Also available in: Atom